[wp-trac] [WordPress Trac] #4603: wp.newCategory should prevent adding multiple categories of the same name/slug/parent

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 22 07:47:06 UTC 2011


#4603: wp.newCategory should prevent adding multiple categories of the same
name/slug/parent
-------------------------+-----------------------------
 Reporter:  redsweater   |       Owner:  josephscott
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Future Release
Component:  XML-RPC      |     Version:  2.2.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |
-------------------------+-----------------------------
Changes (by solarissmoke):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In trunk, if you try to add a category that already exists,
 `wp_newCategory` returns the ID of the already existing category instead
 of creating a duplicate. Which is what this ticket was asking for.

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


More information about the wp-trac mailing list