[wp-trac] [WordPress Trac] #15741: Taxonomy: Duplicate term slug error message refers to the name

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 9 01:03:10 UTC 2010


#15741: Taxonomy: Duplicate term slug error message refers to the name
--------------------------+-------------------------------------------------
 Reporter:  Nao           |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  3.0.2          
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 You can't create a term if there is another existing term with the same
 slug. The error message indicates this warning incorrectly, referring to
 the term "name" instead of "slug":

  A term with the name provided already exists with this parent.

 Problem in action:

  1. Create a category name "Example" with slug "example" without any
 parent category.
  2. Once that is saved, try creating the exact same category again.
  3. "A term with the name provided already exists with this parent." error
 shows up.
  4. Create a category name "Example" with slug "example-2".
  5. No error. Category with the same '''name''' can be created, contrary
 to the error  message in step 3.

 The error message should refer to the slug not name if this is an intended
 behavior.  If the same term name should not exist under one level, step 4
 should not be allowed either (especially with Tags).

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


More information about the wp-trac mailing list