WordPress.org

Make WordPress Core

Changeset 21912


Ignore:
Timestamp:
09/19/12 01:36:47 (19 months ago)
Author:
nacin
Message:

Introduce the xmlrpc_login_error filter, applied to the IXR_Error being returned by the server when login() fails. props JustinSainton, fixes #21907.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r21910 r21912  
    188188 
    189189        if (is_wp_error($user)) { 
    190             $this->error = new IXR_Error( 403, __('Bad login/pass combination.' ) ); 
     190            $this->error = new IXR_Error( 403, __( 'Incorrect username or password.' ) ); 
     191            $this->error = apply_filters( 'xmlrpc_login_error', $this->error, $user ); 
    191192            return false; 
    192193        } 
Note: See TracChangeset for help on using the changeset viewer.