Make WordPress Core


Ignore:
Timestamp:
06/08/2021 10:37:34 PM (4 years ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r51027 r51116  
    21352135    }
    21362136
    2137     // The posts page can't be edited in the block editor.
    2138     if ( absint( get_option( 'page_for_posts' ) ) === $post->ID && empty( $post->post_content ) ) {
    2139         return false;
    2140     }
    2141 
    21422137    $use_block_editor = use_block_editor_for_post_type( $post->post_type );
    21432138
Note: See TracChangeset for help on using the changeset viewer.