| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped,WordPress.Security.EscapeOutput.ExceptionNotEscaped,WordPress.Security.EscapeOutput.UnsafePrintingFunction -- Legacy Customify view output contains trusted config HTML, dynamic CSS/JS, or WordPress Customizer binding attributes. | |
| 3 | 2 | /** |
| 4 | 3 | * This is the class that handles the overall logic for the Customizer. |
| 5 | 4 | * |
| 6 | 5 | * @see https://pixelgrade.com |
| @@ -168,41 +167,28 @@ | ||
| 168 | 167 | */ |
| 169 | 168 | function register_admin_customizer_scripts() { |
| 170 | 169 | $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; |
| 171 | 170 | |
| 172 | - wp_register_script( | |
| 173 | - PixCustomifyPlugin()->get_slug() . '-select2', | |
| 174 | - plugins_url( 'js/vendor/select2-4.0.13/dist/js/select2.full' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 175 | - array( 'jquery' ), | |
| 176 | - PixCustomifyPlugin()->get_version(), | |
| 177 | - false | |
| 178 | - ); | |
| 179 | - wp_register_script( | |
| 180 | - 'jquery-react', | |
| 181 | - plugins_url( 'js/vendor/jquery-react' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 182 | - array( 'jquery' ), | |
| 183 | - PixCustomifyPlugin()->get_version(), | |
| 184 | - false | |
| 185 | - ); | |
| 186 | - wp_register_script( | |
| 187 | - PixCustomifyPlugin()->get_slug() . '-fontfields', | |
| 188 | - plugins_url( 'js/customizer/font-fields' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 189 | - array( 'jquery', 'underscore' ), | |
| 190 | - PixCustomifyPlugin()->get_version(), | |
| 191 | - false | |
| 192 | - ); | |
| 171 | + wp_register_script( PixCustomifyPlugin()->get_slug() . '-select2', | |
| 172 | + plugins_url( 'js/vendor/select2-4.0.13/dist/js/select2.full' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 173 | + array( 'jquery' ), PixCustomifyPlugin()->get_version() ); | |
| 174 | + wp_register_script( 'jquery-react', | |
| 175 | + plugins_url( 'js/vendor/jquery-react' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 176 | + array( 'jquery' ), PixCustomifyPlugin()->get_version() ); | |
| 177 | + wp_register_script( PixCustomifyPlugin()->get_slug() . '-fontfields', | |
| 178 | + plugins_url( 'js/customizer/font-fields' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 179 | + array( 'jquery', 'underscore' ), PixCustomifyPlugin()->get_version() ); | |
| 193 | 180 | |
| 194 | - wp_register_script( PixCustomifyPlugin()->get_slug() . '-customizer-scripts', | |
| 195 | - plugins_url( 'js/customizer' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 196 | - array( | |
| 197 | - 'jquery', | |
| 181 | + wp_register_script( PixCustomifyPlugin()->get_slug() . '-customizer-scripts', | |
| 182 | + plugins_url( 'js/customizer' . $suffix . '.js', PixCustomifyPlugin()->get_file() ), | |
| 183 | + array( | |
| 184 | + 'jquery', | |
| 198 | 185 | PixCustomifyPlugin()->get_slug() . '-select2', |
| 199 | 186 | 'underscore', |
| 200 | - 'customize-controls', | |
| 201 | - PixCustomifyPlugin()->get_slug() . '-fontfields', | |
| 202 | - ), | |
| 203 | - PixCustomifyPlugin()->get_version(), | |
| 204 | - false ); | |
| 187 | + 'customize-controls', | |
| 188 | + PixCustomifyPlugin()->get_slug() . '-fontfields', | |
| 189 | + ), | |
| 190 | + PixCustomifyPlugin()->get_version() ); | |
| 205 | 191 | } |
| 206 | 192 | |
| 207 | 193 | /** |
| 208 | 194 | * Enqueue Customizer admin scripts |