Skip to content

Commit

Permalink
Optimize preload paths for site editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Mar 7, 2022
1 parent 58287c9 commit 571140f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/full-site-editing/edit-site-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,10 @@ static function( $classes ) {
'preload_paths' => array_merge(
array(
array( '/wp/v2/media', 'OPTIONS' ),
'/',
'/wp/v2/types?context=edit',
'/wp/v2/types?context=view',
'/wp/v2/types/wp_template?context=edit',
'/wp/v2/types/wp_template-part?context=edit',
'/wp/v2/taxonomies?context=edit',
'/wp/v2/taxonomies?context=view',
'/wp/v2/pages?context=edit',
'/wp/v2/categories?context=edit',
'/wp/v2/posts?context=edit',
Expand Down

0 comments on commit 571140f

Please sign in to comment.