[wp-trac] [WordPress Trac] #16003: XMLRPC should use category ids instead of names

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 13 15:02:43 UTC 2011


#16003: XMLRPC should use category ids instead of names
-------------------------------------+-----------------------------
 Reporter:  koke                     |       Owner:  ericmann
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  Future Release
Component:  XML-RPC                  |     Version:  3.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------

Comment (by ericmann):

 Replying to [comment:6 mdawaffe]:
 > The $catids should be sent and received as ints, not strings.

 Fair enough, and something I didn't think of the first time 'round.  New
 patch uses `array_map` to convert the $catids to an array of ints before
 sending/persisting.

 I've also added the ability to send categories by ID to
 `metaWeblog.editPost` (if you can set them with `newPost` you should be
 able to edit them with `editPost`).

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


More information about the wp-trac mailing list