Make WordPress Core

Changeset 34885


Ignore:
Timestamp:
10/06/2015 10:59:30 PM (9 years ago)
Author:
DrewAPicture
Message:

Login: Pass the $errors object as a parameter to the lostpassword_post hook.

Props iamfriendly.
Fixes #32116.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r34371 r34885  
    296296     *
    297297     * @since 2.1.0
    298      */
    299     do_action( 'lostpassword_post' );
     298     * @since 4.4.0 Added the `$errors` parameter.
     299     *
     300     * @param WP_Error $errors A WP_Error object containing any errors generated
     301     *                         by using invalid credentials.
     302     */
     303    do_action( 'lostpassword_post', $errors );
    300304
    301305    if ( $errors->get_error_code() )
Note: See TracChangeset for help on using the changeset viewer.