diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php index 408806b125..e757dc4fe8 100644 --- a/src/wp-admin/edit-form-blocks.php +++ b/src/wp-admin/edit-form-blocks.php @@ -313,7 +313,7 @@ $script = sprintf( ); wp_add_inline_script( 'wp-edit-post', $script ); -if ( (int) get_option( 'page_for_posts' ) === (int) $post->ID ) { +if ( (int) get_option( 'page_for_posts' ) === $post->ID ) { add_action( 'admin_enqueue_scripts', '_wp_block_editor_posts_page_notice' ); } diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index fedf3fcbc9..acdc12798d 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -2666,17 +2666,20 @@ function wp_star_rating( $args = array() ) { } /** - * Output a notice when editing the page for posts (internal use only). + * Outputs a notice when editing the page for posts (internal use only). * * @ignore * @since 4.2.0 */ function _wp_posts_page_notice() { - echo '
' . __( 'You are currently editing the page that shows your latest posts.' ) . '
%s