Skip to content

Commit

Permalink
PHP lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 25, 2024
1 parent e6f8b5f commit 12efb60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/compat/wordpress-6.8/preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
*/
function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) {
if ( 'core/edit-site' === $context->name || 'core/edit-post' === $context->name ) {
$stylesheet = get_stylesheet();
$stylesheet = get_stylesheet();

Check failure on line 13 in lib/compat/wordpress-6.8/preload.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Spaces must be used for mid-line alignment; tabs are not allowed
$global_styles_path = '/wp/v2/global-styles/themes/' . $stylesheet;
$paths[] = $global_styles_path . '?context=view';
foreach ($paths as $key => $path) {
if ($path === $global_styles_path) {
unset($paths[$key]);
$paths[] = $global_styles_path . '?context=view';
foreach ( $paths as $key => $path ) {
if ( $path === $global_styles_path ) {
unset( $paths[ $key ] );
}
}
}
Expand Down

0 comments on commit 12efb60

Please sign in to comment.