Skip to content

Commit

Permalink
Preload unstable base all editors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Feb 7, 2025
1 parent 80511b7 commit dead145
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions lib/compat/wordpress-6.8/preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,6 @@ function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) {

$paths[] = '/wp/v2/settings';
$paths[] = array( '/wp/v2/settings', 'OPTIONS' );
$paths[] = '/?_fields=' . implode(
',',
// @see packages/core-data/src/entities.js
array(
'description',
'gmt_offset',
'home',
'name',
'site_icon',
'site_icon_url',
'site_logo',
'timezone_string',
'default_template_part_areas',
'default_template_types',
'url',
'page_for_posts',
'page_on_front',
'show_on_front',
)
);
$paths[] = '/wp/v2/templates/lookup?slug=front-page';
$paths[] = '/wp/v2/templates/lookup?slug=home';
}
Expand Down Expand Up @@ -93,6 +73,26 @@ function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) {

// Used by getBlockPatternCategories in useBlockEditorSettings.
$paths[] = '/wp/v2/block-patterns/categories';
$paths[] = '/?_fields=' . implode(
',',
// @see packages/core-data/src/entities.js
array(
'description',
'gmt_offset',
'home',
'name',
'site_icon',
'site_icon_url',
'site_logo',
'timezone_string',
'default_template_part_areas',
'default_template_types',
'url',
'page_for_posts',
'page_on_front',
'show_on_front',
)
);
}
return $paths;
}
Expand Down

0 comments on commit dead145

Please sign in to comment.