[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:52:24 UTC 2019


#48401: Saving a Post Breaks in Gutenberg if you have a custom taxonomy named
Status
-------------------------------------------------+-------------------------
 Reporter:  kingkool68                           |       Owner:  fgiannar
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.4
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug needs-refresh has-    |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * keywords:  good-first-bug has-patch => good-first-bug needs-refresh has-
     unit-tests
 * owner:  (none) => fgiannar
 * status:  new => assigned
 * milestone:  Future Release => 5.4


Comment:

 Thanks for working on this @fgiannar, this looks great! That version
 number is correct, and the tests look good.

 Instead of setting the function on `_doing_it_wrong` to the current
 method, I think it might make more sense for the function to be
 `register_taxonomy` as that is where the developer would have to make
 their adjustments. I think it would also be helpful to add a bit more
 context to the message. Something along the lines of...

 {{{
 The %s taxonomy name conflicts with an existing property on the REST API
 Posts Controller. Specify a custom "rest_base" when registering the
 taxonomy to avoid this error.
 }}}

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


More information about the wp-trac mailing list