/** * Remove a registered script. * * @since r16 * @see nxt_Scripts::remove() For parameter information. */ function nxt_deregister_script($handle) { global $nxt_scripts; if (!is_a($nxt_scripts, 'nxt_Scripts')) { if (!did_action('init')) { _doing_it_wrong(__FUNCTION__, sprintf(__('Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.'), '<code>nxt_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>init</code>'), '3.3'); } $nxt_scripts = new nxt_Scripts(); } $nxt_scripts->remove($handle); }
/** * Remove a registered script. * * @since r16 * @see nxt_Scripts::remove() For parameter information. */ function nxt_deregister_script($handle) { global $nxt_scripts; if (!is_a($nxt_scripts, 'nxt_Scripts')) { $nxt_scripts = new nxt_Scripts(); } $nxt_scripts->remove($handle); }