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

WordPress Trac noreply at wordpress.org
Sat Jun 14 15:19:01 UTC 2014


#22023: Remove UNIQUE for slug in wp_terms
---------------------------------+------------------
 Reporter:  nacin                |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  4.0
Component:  Taxonomy             |     Version:  2.3
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 4.0-early  |     Focuses:
---------------------------------+------------------

Comment (by simonwheatley):

 Additional tests for term_exists:

 * Don't use `rand_str` in `test_term_exists_known` or
 `test_term_exists_unknown`, instead specify a term name (allows for
 debugging tests more easily if the term name is in DB already)
 * Check optional `$taxonomy` parameter
 * Check optional `$parent parameter
 * Incidentally check inserting a term with a parent
 * Check specifying `$term` as integer other than `0` (in this case
 `99999`)
 * No need to assert the term deletion (we're testing term deletion
 functionality elsewhere)

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


More information about the wp-trac mailing list