From 3f756da63a3fc2482d233edbe69be927d0903f4d Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 13 Oct 2015 00:50:28 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@35093 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-login.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wp-login.php b/src/wp-login.php index 1f9e334bf3..6500fd968d 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -341,10 +341,13 @@ function retrieve_password() { * Filter the subject of the password reset email. * * @since 2.8.0 + * @since 4.4.0 Added the `$user_login` and `$user_data` parameters. * - * @param string $title Default email title. + * @param string $title Default email title. + * @param string $user_login The username for the user. + * @param WP_User $user_data WP_User object. */ - $title = apply_filters( 'retrieve_password_title', $title ); + $title = apply_filters( 'retrieve_password_title', $title, $user_login, $user_data ); /** * Filter the message body of the password reset mail.