We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f8b5f commit cdd9d9eCopy full SHA for cdd9d9e
lib/compat/wordpress-6.8/preload.php
@@ -10,12 +10,12 @@
10
*/
11
function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) {
12
if ( 'core/edit-site' === $context->name || 'core/edit-post' === $context->name ) {
13
- $stylesheet = get_stylesheet();
+ $stylesheet = get_stylesheet();
14
$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]);
+ $paths[] = $global_styles_path . '?context=view';
+ foreach ( $paths as $key => $path ) {
+ if ( $path === $global_styles_path ) {
+ unset( $paths[ $key ] );
19
}
20
21
0 commit comments