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
This commit is contained in:
Sergey Biryukov 2021-11-22 08:40:26 +00:00
parent c7b330801d
commit 4dea8f5945

View File

@ -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;
}