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-styles.php

    r13351 r18446  
    123123        return false;
    124124    }
     125   
     126    function do_footer_items() { // HTML 5 allows styles in the body, grab late enqueued items and output them in the footer.
     127        $this->do_items(false, 1);
     128        return $this->done;
     129    }
    125130
     131    function reset() {
     132        $this->do_concat = false;
     133        $this->concat = '';
     134        $this->concat_version = '';
     135        $this->print_html = '';
     136    }
    126137}
     138
Note: See TracChangeset for help on using the changeset viewer.