diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index 0268bc8ae8..9d683b2afd 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -57,16 +57,16 @@ $rest_path = rest_get_route_for_post( $post ); // Preload common data. $preload_paths = array( - '/', '/wp/v2/types?context=edit', - '/wp/v2/taxonomies?per_page=-1&context=edit', + '/wp/v2/taxonomies?context=edit', '/wp/v2/themes?status=active', add_query_arg( 'context', 'edit', $rest_path ), sprintf( '/wp/v2/types/%s?context=edit', $post_type ), - sprintf( '/wp/v2/users/me?post_type=%s&context=edit', $post_type ), + '/wp/v2/users/me', array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ), array( rest_get_route_for_post_type_items( 'wp_block' ), 'OPTIONS' ), sprintf( '%s/autosaves?context=edit', $rest_path ), + '/wp/v2/settings', ); block_editor_rest_api_preload( $preload_paths, $block_editor_context ); diff --git a/wp-admin/site-editor.php b/wp-admin/site-editor.php index 7706595172..f9d2605b23 100644 --- a/wp-admin/site-editor.php +++ b/wp-admin/site-editor.php @@ -72,7 +72,6 @@ $active_global_styles_id = WP_Theme_JSON_Resolver::get_user_global_styles_post_i $active_theme = wp_get_theme()->get_stylesheet(); $preload_paths = array( array( '/wp/v2/media', 'OPTIONS' ), - '/', '/wp/v2/types?context=edit', '/wp/v2/types/wp_template?context=edit', '/wp/v2/types/wp_template-part?context=edit', diff --git a/wp-includes/version.php b/wp-includes/version.php index c279b67030..3cc41324d5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52994'; +$wp_version = '6.0-alpha-52995'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.