diff --git a/lib/compat/wordpress-6.8/preload.php b/lib/compat/wordpress-6.8/preload.php index 40fd6c7fd57f9..8eea40eb5190a 100644 --- a/lib/compat/wordpress-6.8/preload.php +++ b/lib/compat/wordpress-6.8/preload.php @@ -10,13 +10,13 @@ */ function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) { if ( 'core/edit-site' === $context->name || 'core/edit-post' === $context->name ) { - $paths[] = '/wp/v2/global-styles/themes/' . get_stylesheet() . '?context=view'; + $paths[] = '/wp/v2/global-styles/themes/' . get_stylesheet() . '?context=view'; } return array_diff( - $paths, - array( - '/wp/v2/global-styles/themes/' . get_stylesheet(), - ) - ); + $paths, + array( + '/wp/v2/global-styles/themes/' . get_stylesheet(), + ) + ); } -add_filter( 'block_editor_rest_api_preload_paths', 'gutenberg_block_editor_preload_paths_6_8', 10, 2 ); \ No newline at end of file +add_filter( 'block_editor_rest_api_preload_paths', 'gutenberg_block_editor_preload_paths_6_8', 10, 2 );