mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 13:37:51 +01:00
Remove unneeded arg.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6b41824e8
commit
ab4bbdab05
@ -526,7 +526,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
}
|
||||
|
||||
$user = new WP_User($user_login);
|
||||
if ( !$user->has_cap('publish_posts', $post_ID) )
|
||||
if ( !$user->has_cap('publish_posts') )
|
||||
return new IXR_Error(401, 'Sorry, you can not post on this weblog or category.');
|
||||
|
||||
$post_author = $user->ID;
|
||||
|
Loading…
Reference in New Issue
Block a user