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

WordPress Trac noreply at wordpress.org
Sun Jan 26 10:30:12 UTC 2014


#5809: Updating a term in one taxonomy affects the term in every taxonomy
-----------------------------+-----------------------------
 Reporter:  rmccue           |       Owner:  garyc40
     Type:  defect (bug)     |      Status:  reopened
 Priority:  high             |   Milestone:  Future Release
Component:  Taxonomy         |     Version:  2.3
 Severity:  major            |  Resolution:
 Keywords:  has-patch early  |     Focuses:
-----------------------------+-----------------------------

Comment (by voilamedia):

 Want to make sure this issues is related before posting another ticket. I
 tested this on a fresh install with WordPress 3.8.1.

 When you create a custom taxonomy, (post types most likely would do this
 too but I didn't want to test it) then add terms to the taxonomy as you
 would. Then add a term of that taxonomy as the name of custom menu that
 you set up with the new menu manager feature, than add menu items it
 modifies the term and the menu it modifies both the menu term and the
 custom taxonomy term

 To replicate.

 1. create custom taxonomy called centers with a term called "Western US /
 Los Angeles" with slug of la
 2. Create a menu called "Western US / Los Angeles"
 3. Add items to the menu and save it.
 4. Go back and check the taxonomy the slug has been updated to "western-
 us-los-angeles"
 5. The same thing happens if you use a slug or an id as the menu name. It
 changes the term name of the custom taxonomy  to term Id.
 6. Once this happens If you update either the menu or the term of the
 custom taxonomy term it updates both terms.

 The custom nav_menu menus are actually stored in the terms tables. Now,
 when I tried to name the menu the same as an existing term, in the DB,
 instead of creating a "Menu Name" term, the system just linked to the
 existing term. So when one or the other is updated, it's changing "both",
 but they are actually the same term.

  If this issue is as big as it looks I really don't understand why this
 has not been resolved yet. This has been issue for years and it can cause
 a lot of issues. I propose this should be fixed in 3.8.2.

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


More information about the wp-trac mailing list