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. Built from https://develop.svn.wordpress.org/trunk@52231 git-svn-id: http://core.svn.wordpress.org/trunk@51823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ee35e14c2
commit
d2c41142ed
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-52230';
|
||||
$wp_version = '5.9-alpha-52231';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue