WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/21/2011 04:32:01 PM (8 years ago)
Author:
azaozz
Message:

Support for using wp_enqueue_script() and wp_enqueue_style() in the HTML body. All scripts and styles are added in the footer, fixes #9346

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class.wp-dependencies.php

    r17771 r18446  
    4040
    4141        foreach( $this->to_do as $key => $handle ) {
    42             if ( !in_array($handle, $this->done) && isset($this->registered[$handle]) ) {
     42            if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) {
    4343
    4444                if ( ! $this->registered[$handle]->src ) { // Defines a group.
Note: See TracChangeset for help on using the changeset viewer.