Make WordPress Core

Changeset 30357


Ignore:
Timestamp:
11/16/2014 07:24:39 AM (7 years ago)
Author:
johnbillion
Message:

Add $user_login and $user_data parameters to the retrieve_password_message filter.

Props ivankristianto, dcavins
Fixes #25853

File:
1 edited

Legend:

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

    r30122 r30357  
    385385     */
    386386    $title = apply_filters( 'retrieve_password_title', $title );
     387
    387388    /**
    388389     * Filter the message body of the password reset mail.
    389390     *
    390391     * @since 2.8.0
    391      *
    392      * @param string $message Default mail message.
    393      * @param string $key     The activation key.
    394      */
    395     $message = apply_filters( 'retrieve_password_message', $message, $key );
     392     * @since 4.1.0 Added `$user_login` and `$user_data` parameters.
     393     *
     394     * @param string  $message    Default mail message.
     395     * @param string  $key        The activation key.
     396     * @param string  $user_login The username for the user.
     397     * @param WP_User $user_data  WP_User object.
     398     */
     399    $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
    396400
    397401    if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
Note: See TracChangeset for help on using the changeset viewer.