Skip to content

Commit 3f0ac52

Browse files
committed
Restore comment to _wp_footer_scripts()
1 parent 18691a4 commit 3f0ac52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wp-includes/script-loader.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,6 +2264,11 @@ function wp_print_head_scripts() {
22642264
/**
22652265
* Private, for use in *_footer_scripts hooks
22662266
*
2267+
* In classic themes, when block styles are loaded on demand via {@see wp_load_classic_theme_block_styles_on_demand()},
2268+
* this function is replaced by a closure in {@see wp_hoist_late_printed_styles()} which will capture the output of
2269+
* {@see print_late_styles()} before printing footer scripts as usual. The captured late-printed styles are then hoisted
2270+
* to the HEAD by means of the template enhancement output buffer.
2271+
*
22672272
* @since 3.3.0
22682273
*/
22692274
function _wp_footer_scripts() {

0 commit comments

Comments
 (0)