From 4dea8f5945542f6e1ac26ddae69fa91bfcc8e1ce Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 22 Nov 2021 08:40:26 +0000 Subject: [PATCH] Editor: Check the correct post type support property for `initial_edits`. The property to check should be `editor` instead of `content`, as posts don't have a `content` support property. This addresses an e2e test failure in Gutenberg. Follow-up to [52230]. Props talldanwp. See #53813. git-svn-id: https://develop.svn.wordpress.org/trunk@52231 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php index 1ed9fb0792..f85503d575 100644 --- a/src/wp-admin/edit-form-blocks.php +++ b/src/wp-admin/edit-form-blocks.php @@ -86,7 +86,7 @@ if ( 'auto-draft' === $post->post_status ) { $initial_edits['title'] = $post->post_title; } - if ( post_type_supports( $post->post_type, 'content' ) ) { + if ( post_type_supports( $post->post_type, 'editor' ) ) { $initial_edits['content'] = $post->post_content; }