Correct the logic as there is no publish_post cap.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b3bc43ab49
commit
fe92a01932
|
@ -3277,7 +3277,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
do_action('xmlrpc_call', 'mt.publishPost');
|
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.'));
|
return new IXR_Error(401, __('Sorry, you cannot publish this post.'));
|
||||||
|
|
||||||
$postdata = wp_get_single_post($post_ID,ARRAY_A);
|
$postdata = wp_get_single_post($post_ID,ARRAY_A);
|
||||||
|
|
Loading…
Reference in New Issue