Make WordPress Core

Ticket #25853: wp-login.diff

File wp-login.diff, 669 bytes (added by ivankristianto, 10 years ago)

Patch 'retrieve_password_message' to include $user_login

  • wp-login.php

     
    391391         * @param string $message Default mail message.
    392392         * @param string $key     The activation key.
    393393         */
    394         $message = apply_filters( 'retrieve_password_message', $message, $key );
     394        $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login );
    395395
    396396        if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
    397397                wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );