mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56206 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user