mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Block Editor: Preload settings and templates permissions.
This is a path for following changes in the Gutenberg plugin: * [https://github.com/WordPress/gutenberg/pull/42209 #42209: Post Editor: Preload templates post type permissions] * [https://github.com/WordPress/gutenberg/pull/42413 #42413: Post Editor: Avoid 403 errors for users with low permissions]. Follow-up to [43815], [44172], [46110], [51962], [52995]. Props Mamaduka, bernhard-reiter, TimothyBlynJacobs. See #56467. Built from https://develop.svn.wordpress.org/trunk@54084 git-svn-id: http://core.svn.wordpress.org/trunk@53643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6e26f8f8c7
commit
32b92a213a
@ -68,8 +68,10 @@ $preload_paths = array(
|
||||
array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ),
|
||||
array( rest_get_route_for_post_type_items( 'page' ), 'OPTIONS' ),
|
||||
array( rest_get_route_for_post_type_items( 'wp_block' ), 'OPTIONS' ),
|
||||
array( rest_get_route_for_post_type_items( 'wp_template' ), 'OPTIONS' ),
|
||||
sprintf( '%s/autosaves?context=edit', $rest_path ),
|
||||
'/wp/v2/settings',
|
||||
array( '/wp/v2/settings', 'OPTIONS' ),
|
||||
);
|
||||
|
||||
block_editor_rest_api_preload( $preload_paths, $block_editor_context );
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-54083';
|
||||
$wp_version = '6.1-alpha-54084';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user