[wp-trac] [WordPress Trac] #14067: WP3.0 XMLRPC wp.newCategory fails for existing category

WordPress Trac noreply at wordpress.org
Fri Nov 8 19:14:26 UTC 2013


#14067: WP3.0 XMLRPC wp.newCategory fails for existing category
--------------------------------------------+---------------------
 Reporter:  andrewpeacock                   |       Owner:
     Type:  defect (bug)                    |      Status:  closed
 Priority:  normal                          |   Milestone:  3.0.1
Component:  XML-RPC                         |     Version:  3.0
 Severity:  major                           |  Resolution:  fixed
 Keywords:  xmlrpc has-patch needs-testing  |
--------------------------------------------+---------------------

Comment (by techaddict):

 wp.newCategory returns wrong category id when the passed category is sub
 category.

 example :

 A is parent category with ID 1 and B is child/sub category with ID 2 of it
 C is parent category with ID 3 and B is child/sub category with ID 4 of it

 So when we pass
         'name'   => 'B',
         'slug' => 'B',
         'parent_id'=>'3'

 It should return 4 but it returns 2.

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


More information about the wp-trac mailing list