/** * Remove a registered CSS file. * * @since r79 * @see nxt_Styles::remove() For additional information. * @global object $nxt_styles The nxt_Styles object for printing styles. * * @param string $handle Name of the stylesheet. */ function nxt_deregister_style($handle) { global $nxt_styles; if (!is_a($nxt_styles, 'nxt_Styles')) { $nxt_styles = new nxt_Styles(); } $nxt_styles->remove($handle); }
/** * Remove a registered CSS file. * * @since r79 * @see nxt_Styles::remove() For additional information. * @global object $nxt_styles The nxt_Styles object for printing styles. * * @param string $handle Name of the stylesheet. */ function nxt_deregister_style($handle) { global $nxt_styles; if (!is_a($nxt_styles, 'nxt_Styles')) { 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_styles = new nxt_Styles(); } $nxt_styles->remove($handle); }