Ticket #22335: 22335.fix-wp-methods.diff
File 22335.fix-wp-methods.diff, 553 bytes (added by , 12 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
1034 1034 return new IXR_Error( 401, __( 'Sorry, you are not allowed to publish posts in this post type' ) ); 1035 1035 break; 1036 1036 default: 1037 $post_data['post_status'] = 'draft'; 1037 if( ! get_post_status_object( $post_data['post_status'] ) ) 1038 $post_data['post_status'] = 'draft'; 1038 1039 break; 1039 1040 } 1040 1041