Ticket #54690: 54690.diff
File 54690.diff, 1.5 KB (added by , 3 years ago) |
---|
-
src/wp-includes/user.php
2945 2945 * 2946 2946 * @since 6.0.0 2947 2947 * 2948 * @param bool $send Whether to send the email. 2948 * @param bool $send Whether to send the email. 2949 * @param string $user_login The username for the user. 2950 * @param WP_User $user_data WP_User object. 2949 2951 */ 2950 if ( ! apply_filters( 'send_retrieve_password_email', true ) ) {2952 if ( ! apply_filters( 'send_retrieve_password_email', true, $user_login, $user_data ) ) { 2951 2953 return true; 2952 2954 } 2953 2955 … … 3056 3058 * @type string $message The body of the email. 3057 3059 * @type string $headers The headers of the email. 3058 3060 * } 3059 * @param array $data { 3060 * Additional information for extenders. 3061 * 3062 * @type string $key The activation key. 3063 * @type string $user_login The username for the user. 3064 * @type WP_User $user_data WP_User object. 3065 * } 3061 * @type string $key The activation key. 3062 * @type string $user_login The username for the user. 3063 * @type WP_User $user_data WP_User object. 3066 3064 */ 3067 $notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $ data );3065 $notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $key, $user_login, $user_data ); 3068 3066 3069 3067 if ( $switched_locale ) { 3070 3068 restore_previous_locale();