diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 4e7c704cce..bfb659d2ed 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -1873,7 +1873,7 @@ class WP_Theme_JSON { * * @param array $nodes Style nodes with metadata. */ - return apply_filters( 'get_style_nodes', $nodes ); + return apply_filters( 'theme_json_get_style_nodes', $nodes ); } /** diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 4ba0d2101a..c2fa897e29 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -2413,7 +2413,7 @@ function wp_enqueue_global_styles() { * This removes the CSS from the global-styles stylesheet and adds it to the inline CSS for each block. */ if ( $separate_assets ) { - add_filter( 'get_style_nodes', 'wp_filter_out_block_nodes' ); + add_filter( 'theme_json_get_style_nodes', 'wp_filter_out_block_nodes' ); // Add each block as an inline css. wp_add_global_styles_for_blocks(); }