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

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 7 12:54:23 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 koke):

 Some comments after looking at [19848]:

 Why the different error messages for different post_status? If the user
 can't {{{publish_posts}}}  then the error is ''"Sorry, you are not allowed
 to publish posts in this post type"''.
 I think specifying that user is not allowed to do private or password
 protected posts it's just confusing if there's no specific capability for
 I don't see the point of this (in [source:trunk/wp-includes/class-wp-
 xmlrpc-server.php at 19848#L645]

 if ( ! empty( $post_data['post_password'] ) && ! current_user_can(
 $post_type->cap->publish_posts ) )
   return new IXR_Error( 401, __( 'Sorry, you are not allowed to create
 password protected posts in this post type' ) );

 Also, the current implementation looks like it has the same bug as #19733.
 Being new methods you don't need to keep compatibility on behavior, but
 mixing mysql2date and IXR_Date on zero dates results on invalid dates and
 xml parsers going nuts. I believe #16985 applies too

 Last, {{{do_action( 'xmlrpc_call', 'wp.getPosts' );}}} is called twice on

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

More information about the wp-trac mailing list