Introduce the xmlrpc_login_error filter, applied to the IXR_Error being returned by the server when login() fails. props JustinSainton, fixes #21907.
git-svn-id: http://core.svn.wordpress.org/trunk@21912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1f9ce958f7
commit
bf3c8017a8
|
@ -187,7 +187,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
$user = wp_authenticate($username, $password);
|
||||
|
||||
if (is_wp_error($user)) {
|
||||
$this->error = new IXR_Error( 403, __('Bad login/pass combination.' ) );
|
||||
$this->error = new IXR_Error( 403, __( 'Incorrect username or password.' ) );
|
||||
$this->error = apply_filters( 'xmlrpc_login_error', $this->error, $user );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue