Skip to content

Commit

Permalink
Update Helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alimuzzaman committed Nov 20, 2023
1 parent ac21e00 commit f3d679b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,13 @@ public static function get_profile($type, $platformKey = null)

return (object) [];
}

/**
* Check is enable classic editor
*/
public static function is_enable_classic_editor() {
$current_screen = get_current_screen();
if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
if ( is_object($current_screen) && method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
return false;
}
return true;
Expand Down

0 comments on commit f3d679b

Please sign in to comment.