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/edit-form-blocks.php

    r51090 r51116  
    314314wp_add_inline_script( 'wp-edit-post', $script );
    315315
     316if ( (int) get_option( 'page_for_posts' ) === (int) $post->ID ) {
     317    add_action( 'admin_enqueue_scripts', '_wp_block_editor_posts_page_notice' );
     318}
     319
    316320require_once ABSPATH . 'wp-admin/admin-header.php';
    317321?>
Note: See TracChangeset for help on using the changeset viewer.