From 0153375f4062060bf93396b3719553b9aa4a29af Mon Sep 17 00:00:00 2001 From: isabel_brison Date: Tue, 11 Jul 2023 07:17:23 +0000 Subject: [PATCH] Editor: remove one preloaded navigation endpoint. Removes one of the preloaded navigation endpoints from the site editor as it is not in use anymore. Props scruffian. Fixes #58749. Built from https://develop.svn.wordpress.org/trunk@56206 git-svn-id: http://core.svn.wordpress.org/trunk@55718 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/site-editor.php | 15 --------------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/wp-admin/site-editor.php b/wp-admin/site-editor.php index 4470967481..6c4efd2a50 100644 --- a/wp-admin/site-editor.php +++ b/wp-admin/site-editor.php @@ -100,7 +100,6 @@ $preload_paths = array( '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', @@ -109,20 +108,6 @@ $preload_paths = array( ), '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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index d18cdfc052..ff4840a706 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta3-56205'; +$wp_version = '6.3-beta3-56206'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.