Skip to content

Commit

Permalink
Enqueue preset styles for all themes in the editor (#35424)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 11, 2021
1 parent 8ab2d42 commit 32da4ed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@ function_exists( 'gutenberg_is_edit_site_page' ) &&
$settings['__experimentalGlobalStylesBaseStyles'] = $theme->get_raw_data();
}

if (
'site-editor' !== $context &&
'mobile' !== $context &&
( WP_Theme_JSON_Resolver_Gutenberg::theme_has_support() || get_theme_support( 'experimental-link-color' ) )
) {
if ( 'all' === $context ) {
$block_styles = array( 'css' => gutenberg_experimental_global_styles_get_stylesheet( $consolidated, 'block_styles' ) );
$css_variables = array(
'css' => gutenberg_experimental_global_styles_get_stylesheet( $consolidated, 'css_variables' ),
Expand Down

0 comments on commit 32da4ed

Please sign in to comment.