diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 8d60d06619..4a22e5ca7f 100644
a
|
b
|
function retrieve_password( $user_login = null ) { |
3094 | 3094 | * |
3095 | 3095 | * @since 6.0.0 |
3096 | 3096 | * |
3097 | | * @param bool $send Whether to send the email. |
| 3097 | * @param bool $send Whether to send the email. |
| 3098 | * @param string $user_login The username for the user. |
| 3099 | * @param WP_User $user_data WP_User object. |
3098 | 3100 | */ |
3099 | | if ( ! apply_filters( 'send_retrieve_password_email', true ) ) { |
| 3101 | if ( ! apply_filters( 'send_retrieve_password_email', true, $user_login, $user_data ) ) { |
3100 | 3102 | return true; |
3101 | 3103 | } |
3102 | 3104 | |
… |
… |
function retrieve_password( $user_login = null ) { |
3190 | 3192 | 'headers' => '', |
3191 | 3193 | ); |
3192 | 3194 | |
3193 | | $data = compact( 'key', 'user_login', 'user_data' ); |
3194 | | |
3195 | 3195 | /** |
3196 | 3196 | * Filters the contents of the reset password notification email sent to the user. |
3197 | 3197 | * |
… |
… |
function retrieve_password( $user_login = null ) { |
3205 | 3205 | * @type string $message The body of the email. |
3206 | 3206 | * @type string $headers The headers of the email. |
3207 | 3207 | * } |
3208 | | * @param array $data { |
3209 | | * Additional information for extenders. |
3210 | | * |
3211 | | * @type string $key The activation key. |
3212 | | * @type string $user_login The username for the user. |
3213 | | * @type WP_User $user_data WP_User object. |
3214 | | * } |
| 3208 | * @type string $key The activation key. |
| 3209 | * @type string $user_login The username for the user. |
| 3210 | * @type WP_User $user_data WP_User object. |
3215 | 3211 | */ |
3216 | | $notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $data ); |
| 3212 | $notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $key, $user_login, $user_data ); |
3217 | 3213 | |
3218 | 3214 | if ( $switched_locale ) { |
3219 | 3215 | restore_previous_locale(); |