Skip to content

Commit

Permalink
Fix: WordPress default presets aren't loaded for all themes.
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://develop.svn.wordpress.org/trunk@52547 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
jorgefilipecosta committed Jan 10, 2022
1 parent df3f148 commit 16e0165
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wp-includes/script-loader.php
Expand Up @@ -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();

/*
Expand Down

0 comments on commit 16e0165

Please sign in to comment.