Skip to content

Commit 760cdc5

Browse files
committed
Sync latest changes from WordPress/wordpress-develop#10875
1 parent 13abcc0 commit 760cdc5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/script-loader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function gutenberg_enqueue_global_styles() {
2323

2424
/**
2525
* Global styles should be printed in the HEAD for block themes, or for classic themes when loading assets on
26-
* demand is disabled (which is no longer the default).
26+
* demand is disabled (which is no longer the default since WordPress 6.9).
2727
*
2828
* @link https://core.trac.wordpress.org/ticket/53494
2929
* @link https://core.trac.wordpress.org/ticket/61965
@@ -39,12 +39,12 @@ function gutenberg_enqueue_global_styles() {
3939
}
4040

4141
/**
42-
* The footer should only be used for classic themes when loading assets on demand is enabled. This is now the
42+
* The footer should only be used for classic themes when loading assets on demand is enabled. In WP 6.9 this is the
4343
* default with the introduction of hoisting late-printed styles (via {@see wp_load_classic_theme_block_styles_on_demand()}).
4444
* So even though the main global styles are not printed here in the HEAD for classic themes with on-demand asset
4545
* loading, a placeholder for the global styles is still enqueued. Then when {@see wp_hoist_late_printed_styles()}
4646
* processes the output buffer, it can locate the placeholder and inject the global styles from the footer into the
47-
* HEAD.
47+
* HEAD, replacing the placeholder.
4848
*
4949
* @link https://core.trac.wordpress.org/ticket/64099
5050
*/

0 commit comments

Comments
 (0)