Skip to content

Commit

Permalink
Navigation: Remove one preloaded endpoint (#52115)
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored and tellthemachines committed Jul 7, 2023
1 parent 09a4abe commit ce56765
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/compat/wordpress-6.3/navigation-block-preloading.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,6 @@ function gutenberg_preload_navigation_posts( $preload_paths, $context ) {
// Preload the OPTIONS request for all Navigation posts request.
$preload_paths[] = array( $navigation_rest_route, 'OPTIONS' );

// Preload the GET request for ALL 'published' or 'draft' Navigation posts.
$preload_paths[] = array(
add_query_arg(
array(
'context' => 'edit',
'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',
),
$navigation_rest_route
),
'GET',
);

// Preload request for all menus in Browse Mode sidebar "Navigation" section.
$preload_paths[] = array(
add_query_arg(
Expand Down

0 comments on commit ce56765

Please sign in to comment.