diff --git a/includes/admin/class-rop-admin.php b/includes/admin/class-rop-admin.php index 8efb5446..0ec3f9bf 100644 --- a/includes/admin/class-rop-admin.php +++ b/includes/admin/class-rop-admin.php @@ -773,12 +773,13 @@ public static function is_classic_editor() { return true; } + $post_id = ! empty( $_GET['post'] ) ? (int) $_GET['post'] : 0; + if ( ! class_exists( 'Classic_Editor' ) ) { - return false; + $post = get_post( $post_id ); + return $post && ! use_block_editor_for_post_type( $post->post_type ); } - $post_id = ! empty( $_GET['post'] ) ? (int) $_GET['post'] : 0; - $allow_users_to_switch_editors = ( 'allow' === get_option( 'classic-editor-allow-users' ) ); if ( $post_id && $allow_users_to_switch_editors && ! isset( $_GET['classic-editor__forget'] ) ) {