[wp-trac] [WordPress Trac] #18812: XML-RPC newPost need more dashboard-like behavior for publishing posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 29 09:08:16 UTC 2011
#18812: XML-RPC newPost need more dashboard-like behavior for publishing posts
--------------------------+------------------------------
Reporter: koke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Keywords: has-patch mobile
--------------------------+------------------------------
Right now, metaWeblog.newPost calls wp_insert_post before:
* Attaching media uploads
* Set/unset sticky
* Set custom fields
* Set post formats
This is probably done since all those actions need the post ID, but it can
break some plugins that rely on the publish_post action hook since the
post is not complete at that point.
The idea is to make it behave more like wp-admin:
* Save the post as 'auto-draft'
* Attach uploads, set custom fields, ...
* Update with proper status
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18812>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list