Skip to content

Commit

Permalink
gutenberg_is_edit_site_page is only load when the experiment is active
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 8, 2020
1 parent 76a68c3 commit 20fcaaa
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 @@ -664,6 +664,7 @@ function gutenberg_experimental_global_styles_settings( $settings ) {
$screen = get_current_screen();
if (
! empty( $screen ) &&
function_exists( 'gutenberg_is_edit_site_page' ) &&
gutenberg_is_edit_site_page( $screen->id ) &&
gutenberg_experimental_global_styles_has_theme_json_support()
) {
Expand Down

0 comments on commit 20fcaaa

Please sign in to comment.