WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/09/2010 04:42:47 AM (10 years ago)
Author:
markjaquith
Message:

wp_dequeue_script() and wp_dequeue_style(). fixes #14815. props scribu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.wp-styles.php

    r14255 r15601  
    107107
    108108/**
     109 * Remove an enqueued style.
     110 *
     111 * @since WP 3.1
     112 * @see WP_Styles::dequeue() For parameter information.
     113 */
     114function wp_dequeue_style( $handle ) {
     115    global $wp_styles;
     116    if ( !is_a($wp_styles, 'WP_Styles') )
     117        $wp_styles = new WP_Styles();
     118
     119    $wp_styles->dequeue( $handle );
     120}
     121
     122/**
    109123 * Check whether style has been added to WordPress Styles.
    110124 *
Note: See TracChangeset for help on using the changeset viewer.