PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
← All changes | includes/admin/customizer/class-charitable-customizer.php +12 -9 1.6.6 → 1.8.13 View file →
@@ -2,22 +2,24 @@
2 2 /**
3 3 * Class that sets up the WordPress Customizer integration.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Customizer
6 - * @author Eric Daams
7 - * @copyright Copyright (c) 2018, Studio 164a
6 + * @author David Bisset
7 + * @copyright Copyright (c) 2023, WP Charitable LLC
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.2.0
10 - * @version 1.2.0
10 + * @version 1.6.44
11 11 */
12 12
13 13 // Exit if accessed directly.
14 -if ( ! defined( 'ABSPATH' ) ) { exit; }
14 +if ( ! defined( 'ABSPATH' ) ) {
15 + exit;
16 +}
15 17
16 18 if ( ! class_exists( 'Charitable_Customizer' ) ) :
17 19
18 20 /**
19 - * Sets up the Wordpress customizer
21 + * Sets up the WordPress customizer.
20 22 *
21 23 * @since 1.2.0
22 24 */
23 25 class Charitable_Customizer {
@@ -113,9 +115,9 @@
113 115 'default' => 0,
114 116 ),
115 117 'control' => array(
116 118 'type' => 'radio',
117 - 'label' => __( 'Only show required fields', 'charitable' ),
119 + 'label' => __( 'Only Show Required Fields', 'charitable' ),
118 120 'priority' => 1024,
119 121 'choices' => array(
120 122 1 => __( 'Yes', 'charitable' ),
121 123 0 => __( 'No', 'charitable' ),
@@ -418,14 +420,15 @@
418 420 *
419 421 * @return void
420 422 */
421 423 public function load_customizer_script() {
422 - $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
423 424
425 + $min = charitable_get_min_suffix();
426 +
424 427 wp_register_script(
425 428 'charitable-customizer',
426 - charitable()->get_path( 'assets', false ) . 'js/charitable-customizer' . $suffix . '.js',
427 - array( 'jquery-core', 'customize-preview' ),
429 + charitable()->get_path( 'assets', false ) . 'js/charitable-customizer' . $min . '.js',
430 + array( 'jquery', 'customize-preview' ),
428 431 '1.2.0-beta5',
429 432 true
430 433 );
431 434