We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 612c32d + e0cb940 commit 0f6d6f8Copy full SHA for 0f6d6f8
includes/admin/class-rop-admin.php
@@ -773,12 +773,13 @@ public static function is_classic_editor() {
773
return true;
774
}
775
776
+ $post_id = ! empty( $_GET['post'] ) ? (int) $_GET['post'] : 0;
777
+
778
if ( ! class_exists( 'Classic_Editor' ) ) {
- return false;
779
+ $post = get_post( $post_id );
780
+ return $post && ! use_block_editor_for_post_type( $post->post_type );
781
782
- $post_id = ! empty( $_GET['post'] ) ? (int) $_GET['post'] : 0;
-
783
$allow_users_to_switch_editors = ( 'allow' === get_option( 'classic-editor-allow-users' ) );
784
785
if ( $post_id && $allow_users_to_switch_editors && ! isset( $_GET['classic-editor__forget'] ) ) {
0 commit comments