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

WordPress Trac noreply at wordpress.org
Fri Nov 9 10:57:11 UTC 2012


#22220: XML-RPC wp.editPost clears post categories
-----------------------------------------------+---------------------------
 Reporter:  yousefed                           |       Owner:  markoheijnen
     Type:  defect (bug)                       |      Status:  reopened
 Priority:  normal                             |   Milestone:  3.5
Component:  XML-RPC                            |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  needs-unit-tests needs-patch punt  |
-----------------------------------------------+---------------------------
Changes (by westi):

 * keywords:  needs-unit-tests => needs-unit-tests needs-patch punt


Comment:

 Replying to [comment:7 nacin]:
 > What are we doing here? I don't know how feasible it is to switch the
 _insert_post() method to wp_update_post(). This needs unit tests, I
 gather.

 We definitely need some tests to cover this agreed.

 I also think that we should maybe make _insert_post() work differently for
 new/editing as we should be using wp_update_post when editing for sure.

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


More information about the wp-trac mailing list