[wp-trac] [WordPress Trac] #18429: Create custom post types via XMLRPC

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 30 00:57: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 markoheijnen):

 The password can be given if you are a contributor. How I looked into it
 was that the user still can't post it so someone else need to publish it.
 wp backend behaviour should be  mimic indeed. So there should be an cap
 check over there.

 author_id still can be given trough post_author. Not sure if we should
 mimic mw inputs for that. Don't think so.
 My goal for the patch was to create a wrapper around wp_insert_post and
 that uses post_author as input.

 Title and description are allowed to be posted since I think the client
 should check for it. This is something that should be open for discussion
 for the next office hour.

 The comment and ping status variables probably should be validated. I
 don't think we should give an error if the status isn't valid but return
 the default option: default_comment_status / default_ping_status.

 About the cap check the validation is on the right spot. Since someone
 without the cap should also not be have the ability to make a post not
 sticky. In the current case the else statement will be removed since it is
 about a new post so it will always be unsticky.

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


More information about the wp-trac mailing list