Make WordPress Core


Ignore:
Timestamp:
07/21/2011 04:32:01 PM (15 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-scripts.php

    r16469 r18446  
    168168
    169169        function do_footer_items() {
    170                 if ( !empty($this->in_footer) ) {
    171                         foreach( $this->in_footer as $key => $handle ) {
    172                                 if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) {
    173                                         $this->do_item($handle);
    174                                         $this->done[] = $handle;
    175                                         unset( $this->in_footer[$key] );
    176                                 }
    177                         }
    178                 }
     170                $this->do_items(false, 1);
    179171                return $this->done;
    180172        }
Note: See TracChangeset for help on using the changeset viewer.