Make WordPress Core

Changeset 58690


Ignore:
Timestamp:
07/09/2024 10:00:48 AM (10 months ago)
Author:
ellatrix
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r58419 r58690  
    7373    '/wp/v2/settings',
    7474    array( '/wp/v2/settings', 'OPTIONS' ),
     75    '/wp/v2/global-styles/themes/' . get_stylesheet(),
     76    '/wp/v2/themes?context=edit&status=active',
     77    '/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=edit',
    7578);
    7679
Note: See TracChangeset for help on using the changeset viewer.