Skip to content

Commit

Permalink
Site editor: preload settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 30, 2024
1 parent 695476e commit 04d02e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp-admin/site-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ static function ( $classes ) {
$preload_paths = array(
array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ),
array( rest_get_route_for_post_type_items( 'page' ), 'OPTIONS' ),
'/wp/v2/settings',
array( '/wp/v2/settings', 'OPTIONS' ),
'/wp/v2/types?context=view',
'/wp/v2/types/wp_template?context=edit',
'/wp/v2/types/wp_template_part?context=edit',
Expand Down

0 comments on commit 04d02e8

Please sign in to comment.