[wp-trac] [WordPress Trac] #12349: wp_insert_term doesn't check for already existing slugs if the slug is implicit

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 24 08:45:33 UTC 2010


#12349: wp_insert_term doesn't check for already existing slugs if the slug is
implicit
--------------------------+-------------------------------------------------
 Reporter:  nbachiyski    |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  3.0      
Component:  General       |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by dd32):

 I did that for a specific reason, At the time, I believe it was for back
 compat reasons. Its possible to have a Term in multiple taxonomies by
 having the name the same. (Ie. Create Tag "Test" and category "Test" and
 they'll both get 'test' slug, and the same TermID).

 That branching selection, was to ensure that that was still possible if
 the slug was provided..

 Personally.. I dont know why anyone would want that (to me) strange
 behaviour.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12349#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list