Fix: WordPress default presets aren't loaded for all themes.

The default preset styles of WordPress (font sizes, colors, gradients) are now provided via the global stylesheet to avoid duplication of styles. This stylesheet can be found in the front-end with the name global-styles-inline-css.
The default presets are important to support old content that may use them and also patterns, that can use cross-theme styles.

Props oandregal.
Fixes #54781.
Built from https://develop.svn.wordpress.org/trunk@52547


git-svn-id: http://core.svn.wordpress.org/trunk@52137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
jorgefilipecosta 2022-01-10 17:29:03 +00:00
parent 2d8ba6acd9
commit 6d30d2a5d6
2 changed files with 1 additions and 5 deletions

View File

@ -2307,10 +2307,6 @@ function wp_common_block_scripts_and_styles() {
* @since 5.8.0
*/
function wp_enqueue_global_styles() {
if ( ! WP_Theme_JSON_Resolver::theme_has_support() ) {
return;
}
$separate_assets = wp_should_load_separate_core_block_assets();
/*

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-52546';
$wp_version = '6.0-alpha-52547';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.