Correct the logic as there is no publish_post cap.
git-svn-id: https://develop.svn.wordpress.org/trunk@16802 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
10244cc066
commit
dd8cff8381
|
@ -3277,7 +3277,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
|
||||
do_action('xmlrpc_call', 'mt.publishPost');
|
||||
|
||||
if ( !current_user_can('publish_post', $post_ID) )
|
||||
if ( !current_user_can('publish_posts') || !current_user_can('edit_post', $post_ID) )
|
||||
return new IXR_Error(401, __('Sorry, you cannot publish this post.'));
|
||||
|
||||
$postdata = wp_get_single_post($post_ID,ARRAY_A);
|
||||
|
|
Loading…
Reference in New Issue