[wp-trac] [WordPress Trac] #53813: Do not provide initial_edits for properties that are not supported by the current post type.

WordPress Trac noreply at wordpress.org
Mon Nov 22 08:40:41 UTC 2021


#53813: Do not provide initial_edits for properties that are not supported by the
current post type.
---------------------------------------------+-----------------------
 Reporter:  youknowriad                      |       Owner:  audrasjb
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.9
Component:  Editor                           |     Version:  5.8
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:
---------------------------------------------+-----------------------

Comment (by SergeyBiryukov):

 In [changeset:"52231" 52231]:
 {{{
 #!CommitTicketReference repository="" revision="52231"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53813#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list