Changeset 52281
- Timestamp:
- 11/30/2021 03:52:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/site-editor.php
r52275 r52281 65 65 '/wp/v2/types/' . $post_type->name . '?context=edit', 66 66 '/wp/v2/types?context=edit', 67 '/wp/v2/' . $post_type->rest_base . '?context=edit',67 add_query_arg( 'context', 'edit', rest_get_route_for_post_type_items( $post_type ) ), 68 68 ); 69 69 … … 89 89 $active_theme = wp_get_theme()->get_stylesheet(); 90 90 $preload_paths = array( 91 array( '/wp/v2/media', 'OPTIONS' ),91 array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ), 92 92 '/', 93 93 '/wp/v2/types?context=edit', 94 94 '/wp/v2/taxonomies?context=edit', 95 '/wp/v2/pages?context=edit',96 '/wp/v2/categories?context=edit',97 '/wp/v2/posts?context=edit',98 '/wp/v2/tags?context=edit',99 '/wp/v2/templates?context=edit',100 '/wp/v2/template-parts?context=edit',95 add_query_arg( 'context', 'edit', rest_get_route_for_post_type_items( 'page' ) ), 96 add_query_arg( 'context', 'edit', rest_get_route_for_post_type_items( 'post' ) ), 97 add_query_arg( 'context', 'edit', rest_get_route_for_taxonomy_items( 'category' ) ), 98 add_query_arg( 'context', 'edit', rest_get_route_for_taxonomy_items( 'post_tag' ) ), 99 add_query_arg( 'context', 'edit', rest_get_route_for_post_type_items( 'wp_template' ) ), 100 add_query_arg( 'context', 'edit', rest_get_route_for_post_type_items( 'wp_template_part' ) ), 101 101 '/wp/v2/settings', 102 102 '/wp/v2/themes?context=edit&status=active',
Note: See TracChangeset
for help on using the changeset viewer.