Skip to content

Commit cdd9d9e

Browse files
committed
PHP lint
1 parent e6f8b5f commit cdd9d9e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/compat/wordpress-6.8/preload.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
*/
1111
function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) {
1212
if ( 'core/edit-site' === $context->name || 'core/edit-post' === $context->name ) {
13-
$stylesheet = get_stylesheet();
13+
$stylesheet = get_stylesheet();
1414
$global_styles_path = '/wp/v2/global-styles/themes/' . $stylesheet;
15-
$paths[] = $global_styles_path . '?context=view';
16-
foreach ($paths as $key => $path) {
17-
if ($path === $global_styles_path) {
18-
unset($paths[$key]);
15+
$paths[] = $global_styles_path . '?context=view';
16+
foreach ( $paths as $key => $path ) {
17+
if ( $path === $global_styles_path ) {
18+
unset( $paths[ $key ] );
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)