From ad6a1303dcc8b9aee675e51efe9d26170f952d1f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 13 Oct 2015 00:51:24 +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. Built from https://develop.svn.wordpress.org/trunk@35093 git-svn-id: http://core.svn.wordpress.org/trunk@35058 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-login.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index d217940673..07b11fa53b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35092'; +$wp_version = '4.4-alpha-35093'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index 1f9e334bf3..6500fd968d 100644 --- a/wp-login.php +++ b/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.