[wp-trac] [WordPress Trac] #22220: XML-RPC wp.editPost clears post categories

WordPress Trac noreply at wordpress.org
Wed Nov 14 22:58:26 UTC 2012


#22220: XML-RPC wp.editPost clears post categories
------------------------------+---------------------
 Reporter:  yousefed          |       Owner:  westi
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.5
Component:  XML-RPC           |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by westi):

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


Comment:

 In [changeset:"22584"]:
 {{{
 #!CommitTicketReference repository="" revision="22584"
 XMLRPC: When Editing an existing post make sure to use wp_update_post
 instead of wp_insert_post so as to not perform destructive actions on the
 content.

 The wp.EditPost() API will accept very limited data to only edit specific
 attributes of a post, if you didn't supply a category change then we would
 previously
 overwrite the original categories with the default cat.

 Fixes #22220 props nacin.
 }}}

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


More information about the wp-trac mailing list