mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52547 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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();
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user