Skip to content

Commit

Permalink
Fix filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham authored Sep 26, 2022
1 parent 613380a commit 56b6ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* This filter has to be registered before we call wp_get_global_stylesheet();
*/
add_filter( 'gutenberg_get_style_nodes', 'filter_out_block_nodes' );
add_filter( 'theme_json_get_style_nodes', 'wp_filter_out_block_nodes' );
$stylesheet = wp_get_global_stylesheet();

if ( empty( $stylesheet ) ) {
Expand Down

0 comments on commit 56b6ed8

Please sign in to comment.