From 49634edddb240d7cf523b50e53de9137bbb24412 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 19 Sep 2022 22:24:46 +0000 Subject: [PATCH] Docs: Correct the wording in `wp_lostpassword_url()` description. This affects: * The `wp_lostpassword_url()` function. * The `lost_password_html_link` filter. The filter description was copied from the function, which appears to be not quite accurate, as the lost password can only be reset, not retrieved. Follow-up to [11448], [54206]. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54224 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 2 +- src/wp-login.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index f53934966e..5a1e4fdb7f 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -629,7 +629,7 @@ function wp_login_form( $args = array() ) { } /** - * Returns the URL that allows the user to retrieve the lost password. + * Returns the URL that allows the user to reset the lost password. * * @since 2.8.0 * diff --git a/src/wp-login.php b/src/wp-login.php index c74f33f5cc..4c9de9503c 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -1482,7 +1482,7 @@ switch ( $action ) { $html_link = sprintf( '%s', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); /** - * Filters the link that allows the user to retrieve the lost password. + * Filters the link that allows the user to reset the lost password. * * @since 6.1.0 *