Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 25, 2024
1 parent ec6ad3f commit ece965d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/compat/wordpress-6.8/preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
add_filter( 'block_editor_rest_api_preload_paths', 'gutenberg_block_editor_preload_paths_6_8', 10, 2 );

0 comments on commit ece965d

Please sign in to comment.