mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Editor: Ensure that the block editor can be used on the page post type.
Additionally, add a notice for when you are editing the "latest posts" page. Fixes #45537. Props cameronjonesweb, swissspidy, hannahmalcolm, Fantasy1125, ArnaudBan, grantmkin, youknowriad, knutsp, SergeyBiryukov, audrasjb, whyisjake. git-svn-id: https://develop.svn.wordpress.org/trunk@51116 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user