Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r12558 r15601  
    4343 * @param array $deps (optional) Array of script names on which this script depends
    4444 * @param string|bool $ver (optional) Script version (used for cache busting), set to NULL to disable
    45  * @param bool (optional) Wether to enqueue the script before </head> or before </body>
     45 * @param bool $in_footer (optional) Whether to enqueue the script before </head> or before </body>
    4646 * @return null
    4747 */
     
    109109
    110110/**
     111 * Remove an enqueued script.
     112 *
     113 * @since WP 3.1
     114 * @see WP_Scripts::dequeue() For parameter information.
     115 */
     116function wp_dequeue_script( $handle ) {
     117    global $wp_scripts;
     118    if ( !is_a($wp_scripts, 'WP_Scripts') )
     119        $wp_scripts = new WP_Scripts();
     120
     121    $wp_scripts->dequeue( $handle );
     122}
     123
     124/**
    111125 * Check whether script has been added to WordPress Scripts.
    112126 *
Note: See TracChangeset for help on using the changeset viewer.