WordPress.org

Make WordPress Core

Changeset 35093


Ignore:
Timestamp:
10/13/2015 12:50:28 AM (4 years ago)
Author:
DrewAPicture
Message:

Login: Pass the username and WP_User object to the retrieve_password_title filter.

Adding these parameters creates parity with the retrieve_password_message filter, used for modifying the message body of the same password reset email.

Props sudar.
Fixes #34252.

File:
1 edited

Legend:

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

    r34932 r35093  
    342342     *
    343343     * @since 2.8.0
    344      *
    345      * @param string $title Default email title.
    346      */
    347     $title = apply_filters( 'retrieve_password_title', $title );
     344     * @since 4.4.0 Added the `$user_login` and `$user_data` parameters.
     345     *
     346     * @param string  $title      Default email title.
     347     * @param string  $user_login The username for the user.
     348     * @param WP_User $user_data  WP_User object.
     349     */
     350    $title = apply_filters( 'retrieve_password_title', $title, $user_login, $user_data );
    348351
    349352    /**
Note: See TracChangeset for help on using the changeset viewer.