mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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
git-svn-id: https://develop.svn.wordpress.org/trunk@18446 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -122,5 +122,17 @@ class WP_Styles extends WP_Dependencies {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function do_footer_items() { // HTML 5 allows styles in the body, grab late enqueued items and output them in the footer.
|
||||
$this->do_items(false, 1);
|
||||
return $this->done;
|
||||
}
|
||||
|
||||
function reset() {
|
||||
$this->do_concat = false;
|
||||
$this->concat = '';
|
||||
$this->concat_version = '';
|
||||
$this->print_html = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user