Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 15, 2021
1 parent 196de5a commit 4888cb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function_exists( 'gutenberg_is_edit_site_page' ) &&
foreach ( $settings['styles'] as $style ) {
if (
! isset( $style['__unstableType'] ) ||
// 'globalStyles' is for WordPress 5.8. 'theme' and 'presets' is for WordPress 5.9.
! in_array( $style['__unstableType'], array( 'globalStyles', 'theme', 'presets' ), true )
) {
$styles_without_existing_global_styles[] = $style;
Expand Down

0 comments on commit 4888cb5

Please sign in to comment.