'<h1>' .
__( 'You need a higher level of permission.'
) . '</h1>' .
'<p>' .
__( 'Sorry, you are not allowed to create posts as this user.'
) . '</p>',
403
);
}$post =
get_default_post_to_edit( $post_type, true
);
$post_ID =
$post->ID;
/** This filter is documented in wp-admin/post.php */
if ( apply_filters( 'replace_editor', false,
$post ) !== true
) { if ( use_block_editor_for_post( $post ) ) { require ABSPATH . 'wp-admin/edit-form-blocks.php';
} else { wp_enqueue_script( 'autosave'
);
require ABSPATH . 'wp-admin/edit-form-advanced.php';
}} else { // Flag that we're not loading the block editor.
$current_screen =
get_current_screen();
$current_screen->
is_block_editor( false
);
}