WordPress.org

Make WordPress Core

Ticket #2701: 2701j.diff

File 2701j.diff, 442 bytes (added by mdawaffe, 12 years ago)

Better fix for wp_head. Replaces 2701h.diff.

  • wp-includes/script-loader.php

     
    186186 */
    187187function wp_print_scripts( $handles = false ) {
    188188        do_action( 'wp_print_scripts' );
     189        if ( '' === $handles ) // for wp_head
     190                $handles = false;
    189191
    190192        global $wp_scripts;
    191193        if ( !is_a($wp_scripts, 'WP_Scripts') ) {