From 3bc74498590d58bd65e10acf89d5775289bc7897 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 19 Jan 2022 13:18:00 +0000 Subject: [PATCH] Docs: Further update the `send_retrieve_password_email` filter documentation for consistency. Follow-up to [52604], [52605]. See #54690. Built from https://develop.svn.wordpress.org/trunk@52606 git-svn-id: http://core.svn.wordpress.org/trunk@52194 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 8 +++++--- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 3fea54c7bf..87536d7182 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -2941,9 +2941,11 @@ function retrieve_password( $user_login = null ) { /** * Filters whether to send the retrieve password email. * + * Return false to disable sending the email. + * * @since 6.0.0 * - * @param bool $send False to prevent sending. Default true. + * @param bool $send Whether to send the email. */ if ( ! apply_filters( 'send_retrieve_password_email', true ) ) { return true; @@ -3043,7 +3045,7 @@ function retrieve_password( $user_login = null ) { * * @since 6.0.0 * - * @param array $defaults { + * @param array $notification_email { * The default notification email arguments. Used to build wp_mail(). * * @type string $to The intended recipient - user email address. @@ -3059,7 +3061,7 @@ function retrieve_password( $user_login = null ) { * @type WP_User $user_data WP_User object. * } */ - $notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $data ); + $notification_email = apply_filters( 'retrieve_password_notification_email', $notification_email, $data ); if ( $switched_locale ) { restore_previous_locale(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 2bf4fdf3ec..add68be832 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52605'; +$wp_version = '6.0-alpha-52606'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.