Make WordPress Core

Opened 15 years ago

Closed 14 years ago

Last modified 12 years ago

#12911 closed enhancement (duplicate)

Use same slug in different taxonomies

Reported by: scribu's profile scribu Owned by: scribu's profile scribu
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:

Description

[13087] was made in order to prevent sharing terms across taxonomies.

I'm not proposing sharing terms, only sharing slugs. In other words, to be able to have this:

Taxonomy   Name     Slug

post_tag   foo-bar  foobar
category   Foobar   foobar

Change History (12)

#1 @scribu
15 years ago

  • Component changed from General to Taxonomy
  • Owner set to filosofo

Related:

#3 @scribu
15 years ago

I now see that unique terms are enforced at the schema level (in wp_terms):

From IRC:

	<rboren>	If it involves changing the schema it will probably never, ever happen. :-)
	<scribu>	it doesn't necessarily involve changing the schema
	<scribu>	just some changes to wp_unique_term_slug() and probably to wp_insert_term()
	<scribu>	btw, why are you guys so adamant about keeping the schema?
	<rboren>	Because it was hell to change to the current one for taxonomy.
	<rboren>	MU sites were painful to move over.
	<rboren>	And the current schema is the way it is mainly for MU sites.
	<rboren>	Canonical slugs across taxonomies was a requirement, at the time.
	<rboren>	Which led to some less than nice slug juggling for hierarchical taxonomies.
	<rboren>	That's the main part people don't like, the slug mangling for subcats.
	<rboren>	Those who were around for the great taxonomy war still bear scars. :-)

I now see that this constraint would have to be removed at the schema level, from wp_terms:

UNIQUE KEY slug (slug)

#4 @scribu
15 years ago

Related: #13119

#5 @filosofo
15 years ago

  • Owner changed from filosofo to scribu
  • Status changed from new to assigned

#6 @t31os_
15 years ago

  • Cc wp-t31os@… added

#7 @kevinB
15 years ago

  • Cc kevinB added

#8 @nacin
14 years ago

  • Milestone changed from Awaiting Triage to Future Release

#9 @dd32
14 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from assigned to closed

#10 @lkraav
13 years ago

  • Cc lkraav added

#11 @thirstcard
12 years ago

  • Cc thirstcard added

#12 @jaredatch
12 years ago

  • Cc jared@… added
Note: See TracTickets for help on using tickets.