| @@ -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 integration with the classic editor (TinyMCE). |
| 5 | 4 | * |
| 6 | 5 | * @see https://pixelgrade.com |
| @@ -72,15 +71,10 @@ | ||
| 72 | 71 | $script = $this->get_fonts_editor_dynamic_script(); |
| 73 | 72 | if ( ! empty( $script ) ) { |
| 74 | 73 | // Make sure the the script is enqueued in the footer. We want all the DOM to be loaded and need jQuery. |
| 75 | 74 | wp_deregister_script( PixCustomifyPlugin()->get_slug() . '-web-font-loader' ); |
| 76 | - wp_register_script( | |
| 77 | - PixCustomifyPlugin()->get_slug() . '-web-font-loader', | |
| 78 | - plugins_url( 'js/vendor/webfontloader-1-6-28.min.js', PixCustomifyPlugin()->get_file() ), | |
| 79 | - array( 'jquery' ), | |
| 80 | - PixCustomifyPlugin()->get_version(), | |
| 81 | - true | |
| 82 | - ); | |
| 75 | + wp_register_script( PixCustomifyPlugin()->get_slug() . '-web-font-loader', | |
| 76 | + plugins_url( 'js/vendor/webfontloader-1-6-28.min.js', PixCustomifyPlugin()->get_file() ), array('jquery'), null, true ); | |
| 83 | 77 | wp_enqueue_script( PixCustomifyPlugin()->get_slug() . '-web-font-loader' ); |
| 84 | 78 | wp_add_inline_script( PixCustomifyPlugin()->get_slug() . '-web-font-loader', $script ); |
| 85 | 79 | } |
| 86 | 80 | |