is_gutenberg_editing() ) {
?>
id == 'page' && $this->settings()->get( 'page_id' ) > 0 ) {
// Is the block editor active for pages and is the classic editor not loaded?
if ( function_exists( 'use_block_editor_for_post_type' ) && use_block_editor_for_post_type( 'page' ) && ! isset( $_GET['classic-editor'] ) ) {
global $post;
$all404pages = $this->core()->get_all_page_ids();
// Is the currently edited page a custom 404 error page?
if ( in_array( $post->ID, $all404pages ) ) {
return true;
}
}
}
return false;
}
}
}