[wp-trac] [WordPress Trac] #22023: Remove UNIQUE for slug in wp_terms

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 27 20:23:10 UTC 2012


#22023: Remove UNIQUE for slug in wp_terms
-------------------+--------------------------
 Reporter:  nacin  |       Type:  defect (bug)
   Status:  new    |   Priority:  normal
Milestone:  3.5    |  Component:  Taxonomy
  Version:  2.3    |   Severity:  normal
 Keywords:         |
-------------------+--------------------------
 To set us up for future changes to the taxonomy API, we should remove the
 UNIQUE key for 'slug' for wp_terms. Said future changes include:

  * Splitting shared terms on update (#5809)
  * Stop creating shared terms (#21950)
  * Forcibly split remaining shared terms
  * Merge wp_terms and wp_term_taxonomy (I can dream, right?)

 The term_exists() check should prevent duplicate terms from ever being
 inserted (before, of course, we fix #5809 and #21950). But, this needs
 unit tests, particularly because there is a case where term_exists()
 breaks. See #17689, which blocks this ticket.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22023>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list