From 0da06515aadce195b5cff9d930961d05f11a9787 Mon Sep 17 00:00:00 2001 From: davidbaumwald Date: Mon, 19 Sep 2022 17:09:08 +0000 Subject: [PATCH] Login and Registration: Add a new filter for the lost password link. On the login page, the "Register" link for new users has been filterable for some time. This change adds the ability to filter the "Lost your password?" link as well. Props wparslan, audrasjb, rafiahmedd, SergeyBiryukov, antonvlasenko, hellofromTonya. Fixes #55388. Built from https://develop.svn.wordpress.org/trunk@54206 git-svn-id: http://core.svn.wordpress.org/trunk@53765 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-login.php | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index e4199e3d57..6613486a58 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54205'; +$wp_version = '6.1-alpha-54206'; /** * 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 b0dd2b2f6d..c74f33f5cc 100644 --- a/wp-login.php +++ b/wp-login.php @@ -1103,8 +1103,16 @@ switch ( $action ) { %s', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); + + /** + * Filters the link that allows the user to retrieve the lost password. + * + * @since 6.1.0 + * + * @param string $html_link HTML link to the lost password form. + */ + echo apply_filters( 'lost_password_html_link', $html_link ); + ?> -