[wp-trac] [WordPress Trac] #12911: Use same slug in different taxonomies
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 8 00:38:23 UTC 2010
#12911: Use same slug in different taxonomies
-------------------------+--------------------------------------------------
Reporter: scribu | Owner: filosofo
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Taxonomy | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by scribu):
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)}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12911#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list