Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.1/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function gutenberg_enqueue_stored_styles() {
* @param array $nodes The nodes to filter.
* @return array A filtered array of style nodes.
*/
function filter_out_block_nodes( $nodes ) {
function gutenberg_filter_out_block_nodes( $nodes ) {
return array_filter(
$nodes,
function( $node ) {
Expand Down Expand Up @@ -144,7 +144,7 @@ function gutenberg_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 gutenberg_get_global_stylesheet();
*/
add_filter( 'gutenberg_get_style_nodes', 'filter_out_block_nodes', 10, 1 );
add_filter( 'gutenberg_get_style_nodes', 'gutenberg_filter_out_block_nodes', 10, 1 );

$stylesheet = gutenberg_get_global_stylesheet();
if ( empty( $stylesheet ) ) {
Expand Down