[wp-trac] [WordPress Trac] #48401: Saving a Post Breaks in Gutenberg if you have a custom taxonomy named Status

WordPress Trac noreply at wordpress.org
Wed Dec 18 18:13:07 UTC 2019


#48401: Saving a Post Breaks in Gutenberg if you have a custom taxonomy named
Status
----------------------------+-----------------------------
 Reporter:  kingkool68      |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  good-first-bug  |     Focuses:
----------------------------+-----------------------------
Changes (by fgiannar):

 * keywords:  needs-patch good-first-bug needs-unit-tests => good-first-bug


Comment:

 Hi @TimothyBlynJacobs ,

 I have added a patch that issues a warning if a property is already set
 with the same name on the schema, as you mention.
 I also included the corresponding unit test.

 Please make sure to double check the version in `_doing_it_wrong` as I was
 uncertain what the correct value should be.

 Also, I was wondering whether the same warning that we issue to
 `get_item_schema` for taxonomies should be also issued in
 `add_additional_fields_schema`.

 Finally, I was unsure whether I should unregister the taxonomy I use in
 the unit test.

 This is one of my first tickets so your feedback would be more than
 welcome.

 Thanks,

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


More information about the wp-trac mailing list