[wp-trac] [WordPress Trac] #18429: Create custom post types via XMLRPC
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 27 02:24:53 UTC 2012
#18429: Create custom post types via XMLRPC
----------------------------+------------------------
Reporter: nprasath002 | Owner: westi
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 3.4
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------------
Comment (by nprasath002):
Replying to [comment:4 markoheijnen]:
In XMRPC we are adopting the same behaviour as in the WordPress backend.
> - Should we have a default post_status or do we really need to return
an error
In the back end they do have a default post status for posts. So yes!!
> - Should we generate an error if page templates aren't supported
I think yes. The client must know whether the request is valid
> - Should we generate an error on invalid comment status or ping status
Again yes
> - Not sure about the implementation of post_more. Shouldn't the client
handle this instead of the xml-rpc?
> - Shouldn't the checks after wp_insert_post not be before it. Sounds
like it can give weird situation
> - Do we need the "handle enclosures" code in the end of the function.
Shouldn't this be a separate function?
This method is largely influenced by mw_newPost() for consistency and
backward capability. So i adopted the same behaviour
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18429#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list