Skip to content

Commit 9ed62e3

Browse files
committed
Fix comment typos
1 parent a5d3f19 commit 9ed62e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/script-loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,7 +3596,7 @@ function wp_load_classic_theme_block_styles_on_demand() {
35963596
return;
35973597
}
35983598

3599-
// The following to filters are added by default for block themes in _add_default_theme_supports().
3599+
// The following two filters are added by default for block themes in _add_default_theme_supports().
36003600

36013601
/*
36023602
* Load separate block styles so that the large block-library stylesheet is not enqueued unconditionally,
@@ -3611,7 +3611,7 @@ function wp_load_classic_theme_block_styles_on_demand() {
36113611
*/
36123612
add_filter( 'should_load_block_assets_on_demand', '__return_true', 0 );
36133613

3614-
// If even with the filtering
3614+
// If a site has explicitly opted out of loading block styles on demand via filters with priorities higher than above, then abort.
36153615
if ( ! wp_should_load_separate_core_block_assets() || ! wp_should_load_block_assets_on_demand() ) {
36163616
return;
36173617
}

0 commit comments

Comments
 (0)