[wp-trac] [WordPress Trac] #32590: Malformed `object_types` when using `register_taxonomy_for_object_type()` on taxonomy that doesn't already have object types

WordPress Trac noreply at wordpress.org
Mon Jun 8 19:44:35 UTC 2015


#32590: Malformed `object_types` when using `register_taxonomy_for_object_type()`
on taxonomy that doesn't already have object types
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  low           |   Milestone:  4.3
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32709"]:
 {{{
 #!CommitTicketReference repository="" revision="32709"
 Filter out empty object_types in `register_taxonomy_for_object_type()`.

 This prevents weird edge bugs when registering an existing taxonomy with
 an
 object type when the taxonomy was previously associated with no object
 types.

 Fixes #32590.
 }}}

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


More information about the wp-trac mailing list