XML-RPC newPost need more dashboard-like behavior for publishing posts
|Reported by:||koke||Owned by:||josephscott|
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