WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12269 closed defect (bug) (duplicate)

Share terms across taxonomies?

Reported by: jfarthing84 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Administration Keywords: needs-patch
Focuses: Cc:

Description

Is there any reason that a term can't be shared across a taxonomy? For instance, I make a category called "Things" and a category "Things". Why not use the same term id for each taxonomy record, therefore also utilizing the same slug instead of things and things-2. Is there a reason this wouldn't work?

Change History (8)

comment:1 jfarthing844 years ago

  • Cc jeff@… added

comment:2 dd324 years ago

The only reason that it doesnt "work" is that the terms are then shared, and modifying one modifies the other.

I'm not 100% sure if it worked like you're saying in 2.9, I know in 3.0 early it did (after i started hacking away at taxonomy UI), It recently changed to unique the slug accross all taxonomies however, So as to give distinct terms accross the board.. That doing was me, in #11838.

While for some people it seems like a good idea, Some people use the Term Description for something useful, and wouldnt expect that to flow to "Something" in the other taxonomy. It becomes more of an issue when you start utilising custom taxonomies where plugins expect to be able to delete their taxonomies terms (without modifying for example, the users categories)

comment:3 follow-up: jfarthing844 years ago

Well, the term description is within the taxonomy, so that wouldn't flow over. I realize that someone may want to change the slug for one of them and manually have different slugs, and if it were shared, this could not be. However, maybe this should be optional.

comment:4 in reply to: ↑ 3 scribu4 years ago

  • Keywords needs-patch added; developer-feedback removed
  • Milestone changed from Unassigned to 3.0

Replying to jfarthing84:

Well, the term description is within the taxonomy, so that wouldn't flow over. I realize that someone may want to change the slug for one of them and manually have different slugs, and if it were shared, this could not be. However, maybe this should be optional.

I agree. If you force the slug to be unique across all terms, then why keep the wp_terms table at all? You might as well move the slug to wp_term_taxonomy.

comment:5 scribu4 years ago

  • Type changed from enhancement to defect (bug)

comment:6 scribu4 years ago

Related: #12911 (jfarthing84: if that was really what you were after, please close this one as a duplicate)

comment:7 jfarthing844 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

comment:8 nacin4 years ago

  • Milestone 3.0 deleted
Note: See TracTickets for help on using tickets.