diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index 71328d0ad5..408806b125 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -313,6 +313,10 @@ $script = sprintf( ); wp_add_inline_script( 'wp-edit-post', $script ); +if ( (int) get_option( 'page_for_posts' ) === (int) $post->ID ) { + add_action( 'admin_enqueue_scripts', '_wp_block_editor_posts_page_notice' ); +} + require_once ABSPATH . 'wp-admin/admin-header.php'; ?> diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index c208c3dae3..9b66f92d21 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -2134,11 +2134,6 @@ function use_block_editor_for_post( $post ) { return false; } - // The posts page can't be edited in the block editor. - if ( absint( get_option( 'page_for_posts' ) ) === $post->ID && empty( $post->post_content ) ) { - return false; - } - $use_block_editor = use_block_editor_for_post_type( $post->post_type ); /** diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 8e22630d6a..fedf3fcbc9 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2674,3 +2674,20 @@ function wp_star_rating( $args = array() ) { function _wp_posts_page_notice() { echo '
' . __( 'You are currently editing the page that shows your latest posts.' ) . '