We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29718f6 commit fb1dd0dCopy full SHA for fb1dd0d
1 file changed
src/wp-includes/script-loader.php
@@ -3678,10 +3678,11 @@ function wp_remove_surrounding_empty_script_tags( $contents ) {
3678
* the filters are added to cause {@see wp_should_load_separate_core_block_assets()} to return true.
3679
*
3680
* @since 6.9.0
3681
+ * @since 7.0.0 This is now invoked at the `wp_default_styles` action with priority 0 instead of at `init` with priority 8.
3682
3683
* @see _add_default_theme_supports()
3684
*/
-function wp_load_classic_theme_block_styles_on_demand() {
3685
+function wp_load_classic_theme_block_styles_on_demand(): void {
3686
// This is not relevant to block themes, as they are opted in to loading separate styles on demand via _add_default_theme_supports().
3687
if ( wp_is_block_theme() ) {
3688
return;
0 commit comments