mirror of
git://develop.git.wordpress.org/
synced 2025-03-22 13:00:29 +01:00
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:
parent
c7b330801d
commit
4dea8f5945
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user