[wp-trac] [WordPress Trac] #5809: Updating a term in one taxonomy affects the term in every taxonomy

WordPress Trac noreply at wordpress.org
Wed Nov 5 02:02:51 UTC 2014


#5809: Updating a term in one taxonomy affects the term in every taxonomy
--------------------------+---------------------------
 Reporter:  rmccue        |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  high          |   Milestone:  4.1
Component:  Taxonomy      |     Version:  2.3
 Severity:  major         |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"30241"]:
 {{{
 #!CommitTicketReference repository="" revision="30241"
 Split shared taxonomy terms during term update.

 When updating an existing taxonomy term that shares its `term_id` with
 another term, we generate a new row in `wp_terms` and associate the
 updated
 term_taxonomy_id with the new term. This separates the terms, such that
 updating the name of one term does not change the name of any others.

 Note that this term splitting only occurs on installations whose database
 schemas have been upgraded to version 30133 or higher. Note also that
 shared
 terms are only split when run through `wp_update_term()`, as on edit-
 tags.php;
 we will wait until a future release of WordPress to force the splitting of
 all
 shared taxonomy terms.

 Props boonebgorges, rmccue, greuben, garyc40, wonderboymusic, imath,
 jesin.
 Fixes #5809.
 }}}

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


More information about the wp-trac mailing list