Skip to content

Commit

Permalink
Safari: fix site editor template error (#66647)
Browse files Browse the repository at this point in the history
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: mcsf <mcsf@git.wordpress.org>
  • Loading branch information
3 people authored Oct 31, 2024
1 parent 3b9bb77 commit 489f606
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compat/wordpress-6.8/preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) {
}

// Core already preloads both of these for `core/edit-post`.
$paths[] = '/wp/v2/settings';
// To do: investigate why adding this preload path breaks the site
// editor in Safari ("template not found"). Perhaps a race condition?
// $paths[] = '/wp/v2/settings';
$paths[] = array( '/wp/v2/settings', 'OPTIONS' );
$paths[] = '/?_fields=' . implode(
',',
Expand Down

0 comments on commit 489f606

Please sign in to comment.