From 5e060bc838da38df6b4046d1c752385c8bc2d189 Mon Sep 17 00:00:00 2001 From: ellatrix Date: Tue, 9 Jul 2024 10:02:21 +0000 Subject: [PATCH] Section Styles: Prevent flash of variation style updates. This is fixed by preloading the styles. Fixes #61589. Fixes https://github.com/WordPress/wordpress-develop/pull/6989. See https://github.com/WordPress/gutenberg/pull/63172. Props aaronrobertshaw, andrewserong, ramonopoly. Built from https://develop.svn.wordpress.org/trunk@58690 git-svn-id: http://core.svn.wordpress.org/trunk@58092 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-blocks.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index dd66aeea90..ecf83f2017 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c52a6debc0..9cf590bb83 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58689'; +$wp_version = '6.7-alpha-58690'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.