From 5b7e4078900fd2bf02402fa90eee8f68effc4f92 Mon Sep 17 00:00:00 2001 From: Noah Allen Date: Fri, 7 Aug 2020 15:09:45 -0700 Subject: [PATCH] Check that edit site function exists - otherwise will cause fatal when FSE experiment is disabled --- lib/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets.php b/lib/widgets.php index bb2cbca01ae8b3..49c92078ffec5a 100644 --- a/lib/widgets.php +++ b/lib/widgets.php @@ -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 ) ) ); }