Editor: Prevent flash of block style variation styling in post editor.
These changes prevent a flash of style updates for applied block style variations when the global styles data is loaded into the block editor. This is done by preloading the global styles REST API paths which also brings the post and site editors further into line. Reviewed by audrasjb. Merges [58690] to the 6.6 branch. Props aaronrobertshaw, andrewserong, ramonopoly, ellatrix, hellofromTonya. Fixes #61553. Built from https://develop.svn.wordpress.org/branches/6.6@58698 git-svn-id: http://core.svn.wordpress.org/branches/6.6@58100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
52d04586c1
commit
df6f9bdc6a
|
@ -72,6 +72,9 @@ $preload_paths = array(
|
|||
sprintf( '%s/autosaves?context=edit', $rest_path ),
|
||||
'/wp/v2/settings',
|
||||
array( '/wp/v2/settings', 'OPTIONS' ),
|
||||
'/wp/v2/global-styles/themes/' . get_stylesheet(),
|
||||
'/wp/v2/themes?context=edit&status=active',
|
||||
'/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=edit',
|
||||
);
|
||||
|
||||
block_editor_rest_api_preload( $preload_paths, $block_editor_context );
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.6-RC2-58697';
|
||||
$wp_version = '6.6-RC2-58698';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue