← All changes
|
includes/admin/customizer/class-charitable-customizer.php
+5
-4
1.7.0
→
1.8.13
View file →
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * Class that sets up the WordPress Customizer integration. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Classes/Charitable_Customizer |
| 6 | 6 | * @author David Bisset |
| 7 | - * @copyright Copyright (c) 2022, WP Charitable LLC | |
| 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 | 10 | * @version 1.6.44 |
| 11 | 11 | */ |
| @@ -115,9 +115,9 @@ | ||
| 115 | 115 | 'default' => 0, |
| 116 | 116 | ), |
| 117 | 117 | 'control' => array( |
| 118 | 118 | 'type' => 'radio', |
| 119 | - 'label' => __( 'Only show required fields', 'charitable' ), | |
| 119 | + 'label' => __( 'Only Show Required Fields', 'charitable' ), | |
| 120 | 120 | 'priority' => 1024, |
| 121 | 121 | 'choices' => array( |
| 122 | 122 | 1 => __( 'Yes', 'charitable' ), |
| 123 | 123 | 0 => __( 'No', 'charitable' ), |
| @@ -420,13 +420,14 @@ | ||
| 420 | 420 | * |
| 421 | 421 | * @return void |
| 422 | 422 | */ |
| 423 | 423 | public function load_customizer_script() { |
| 424 | - $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; | |
| 425 | 424 | |
| 425 | + $min = charitable_get_min_suffix(); | |
| 426 | + | |
| 426 | 427 | wp_register_script( |
| 427 | 428 | 'charitable-customizer', |
| 428 | - charitable()->get_path( 'assets', false ) . 'js/charitable-customizer' . $suffix . '.js', | |
| 429 | + charitable()->get_path( 'assets', false ) . 'js/charitable-customizer' . $min . '.js', | |
| 429 | 430 | array( 'jquery', 'customize-preview' ), |
| 430 | 431 | '1.2.0-beta5', |
| 431 | 432 | true |
| 432 | 433 | ); |