/** * Format the script in a way that will be compatible with WordPress. */ public function enqueue_script() { if (!self::$script_added && '' !== self::$icons_script) { self::$script_added = true; // @codingStandardsIgnoreStart echo '<script>jQuery(document).ready(function($) { "use strict"; ' . self::$icons_script . '});</script>'; // @codingStandardsIgnoreEnd } }
/** * Format the script in a way that will be compatible with WordPress. */ public function enqueue_script() { if (!self::$script_added && '' != self::$icons_script) { self::$script_added = true; echo '<script>jQuery(document).ready(function($) { "use strict"; ' . wp_kses_post(self::$icons_script) . '});</script>'; } }