[wp-trac] [WordPress Trac] #25037: XML-RPC : Can't remove all the categories from a post by using metaWeblog.editPost

WordPress Trac noreply at wordpress.org
Wed Aug 14 19:02:40 UTC 2013


#25037: XML-RPC : Can't remove all the categories from a post by using
metaWeblog.editPost
--------------------------+------------------------------
 Reporter:  daniloercoli  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:  mobile        |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 This is consistent with how `wp_update_post()` works.

 `mw_editPost()` fills in `$post_category` array ([source:tags/3.6/wp-
 includes/class-wp-xmlrpc-server.php#L4507 line 4507]), then passes it to
 `wp_update_post()` ([source:tags/3.6/wp-includes/class-wp-xmlrpc-
 server.php#L4571 line 4571]). `wp_update_post()` only overwrites existing
 post categories if the passed array is not empty: [source:tags/3.6/wp-
 includes/post.php#L2919].

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


More information about the wp-trac mailing list