Changeset 53094
- Timestamp:
- 04/07/2022 01:38:08 PM (2 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-blocks.php
r53070 r53094 58 58 // Preload common data. 59 59 $preload_paths = array( 60 '/wp/v2/types?context=edit', 61 '/wp/v2/taxonomies?context=edit', 62 '/wp/v2/themes?status=active', 60 '/wp/v2/types?context=view', 61 '/wp/v2/taxonomies?context=view', 62 add_query_arg( 63 array( 64 'context' => 'edit', 65 'per_page' => -1, 66 ), 67 rest_get_route_for_post_type_items( 'wp_block' ) 68 ), 63 69 add_query_arg( 'context', 'edit', $rest_path ), 64 70 sprintf( '/wp/v2/types/%s?context=edit', $post_type ), 65 71 '/wp/v2/users/me', 66 72 array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ), 73 array( rest_get_route_for_post_type_items( 'page' ), 'OPTIONS' ), 67 74 array( rest_get_route_for_post_type_items( 'wp_block' ), 'OPTIONS' ), 68 75 sprintf( '%s/autosaves?context=edit', $rest_path ), -
trunk/src/wp-admin/site-editor.php
r53093 r53094 88 88 $preload_paths = array( 89 89 array( '/wp/v2/media', 'OPTIONS' ), 90 '/wp/v2/types?context= edit',90 '/wp/v2/types?context=view', 91 91 '/wp/v2/types/wp_template?context=edit', 92 92 '/wp/v2/types/wp_template-part?context=edit', 93 '/wp/v2/taxonomies?context=edit',94 '/wp/v2/pages?context=edit',95 '/wp/v2/categories?context=edit',96 '/wp/v2/posts?context=edit',97 '/wp/v2/tags?context=edit',98 93 '/wp/v2/templates?context=edit&per_page=-1', 99 94 '/wp/v2/template-parts?context=edit&per_page=-1', 100 '/wp/v2/settings',101 95 '/wp/v2/themes?context=edit&status=active', 102 96 '/wp/v2/global-styles/' . $active_global_styles_id . '?context=edit', -
trunk/src/wp-admin/widgets-form-blocks.php
r52942 r53094 20 20 $preload_paths = array( 21 21 array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ), 22 '/wp/v2/widget-types?context=edit&per_page=-1', 22 23 '/wp/v2/sidebars?context=edit&per_page=-1', 23 24 '/wp/v2/widgets?context=edit&per_page=-1&_embed=about',
Note: See TracChangeset
for help on using the changeset viewer.