Skip to content

Commit

Permalink
Editor: remove one preloaded navigation endpoint.
Browse files Browse the repository at this point in the history
Removes one of the preloaded navigation endpoints from the site editor as it is not in use anymore.

Props scruffian.
Fixes #58749.


git-svn-id: https://develop.svn.wordpress.org/trunk@56206 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
tellthemachines committed Jul 11, 2023
1 parent efb0610 commit c21b63c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/wp-admin/site-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ static function( $classes ) {
'per_page' => 100,
'order' => 'desc',
'orderby' => 'date',
'_locale' => 'user',
// array indices are required to avoid query being encoded and not matching in cache.
'status[0]' => 'publish',
'status[1]' => 'draft',
Expand All @@ -109,20 +108,6 @@ static function( $classes ) {
),
'GET',
),
$preload_paths[] = array(
add_query_arg(
array(
'context' => 'edit',
'per_page' => 100,
'order' => 'desc',
'orderby' => 'date',
'status[0]' => 'publish',
'status[1]' => 'draft',
),
$navigation_rest_route
),
'GET',
),
);

block_editor_rest_api_preload( $preload_paths, $block_editor_context );
Expand Down

0 comments on commit c21b63c

Please sign in to comment.