Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 09f9290

Browse files
committed
#224 - active error with block editor exists check.
Signed-off-by: Kevin Provance <kevin.provance@gmail.com>
1 parent 81e1649 commit 09f9290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redux-templates/classes/class-templates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function is_gutenberg_page(): bool {
7979

8080
$current_screen = get_current_screen();
8181

82-
if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
82+
if ( isset( $current_screen ) && method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
8383
// Gutenberg page on 5+.
8484
return true;
8585
}

0 commit comments

Comments
 (0)