[wp-trac] [WordPress Trac] #34413: calling register_taxonomy() multiple times will overwrite existing object types

WordPress Trac noreply at wordpress.org
Sun Aug 20 19:22:48 UTC 2017


#34413: calling register_taxonomy() multiple times will overwrite existing object
types
--------------------------+---------------------------
 Reporter:  BjornW        |       Owner:  drewapicture
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9
Component:  Taxonomy      |     Version:  2.6
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  docs
--------------------------+---------------------------
Changes (by DrewAPicture):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41280"]:
 {{{
 #!CommitTicketReference repository="" revision="41280"
 Docs: Add a note to the `register_taxonomy()` DocBlock that the object
 types defined in `$object_type` when modifying an already-registered
 taxonomy will be overwritten.

 Props danielbachhuber and BjornW for the initial patches.
 Fixes #34413.
 }}}

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


More information about the wp-trac mailing list