Skip to content

Commit

Permalink
Check that edit site function exists
Browse files Browse the repository at this point in the history
- otherwise will cause fatal when FSE
  experiment is disabled
  • Loading branch information
noahtallen committed Aug 7, 2020
1 parent 2e82a70 commit 5b7e407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function gutenberg_is_block_editor() {
(
$screen->is_block_editor() ||
'gutenberg_page_gutenberg-widgets' === $screen->id ||
gutenberg_is_edit_site_page( $screen->id )
( function_exists( 'gutenberg_is_edit_site_page' ) && gutenberg_is_edit_site_page( $screen->id ) )
);
}

Expand Down

0 comments on commit 5b7e407

Please sign in to comment.