From 5c4708f73f2fb28115f7101e2035eb93a568f985 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Mon, 1 Feb 2021 00:17:59 +0000 Subject: [PATCH] Login: Enable filtering the `back to blog` link. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a new `login_site_html_link` filter that developers can use to adjust the "Go to site" link displayed in the login page footer. Props ebinnion, DrewAPicture, audrasjb, hellofromTonya, sabernhardt.  Fixes #35449. Built from https://develop.svn.wordpress.org/trunk@50117 git-svn-id: http://core.svn.wordpress.org/trunk@49796 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-login.php | 29 +++++++++++++++++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 88238d6f25..b29cd6bdbd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-50116'; +$wp_version = '5.7-alpha-50117'; /** * 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 915020f717..75c65865d9 100644 --- a/wp-login.php +++ b/wp-login.php @@ -282,14 +282,27 @@ function login_footer( $input_id = '' ) { // Don't allow interim logins to navigate away from the page. if ( ! $interim_login ) { ?> -

- -

+

+ %s', + esc_url( home_url( '/' ) ), + /* translators: %s: Site title. */ + sprintf( + _x( '← Go to %s', 'site' ), + get_bloginfo( 'title', 'display' ) + ) + ); + /** + * Filter the "Go to site" link displayed in the login page footer. + * + * @since 5.7.0 + * + * @param string $link HTML link to the home URL of the current site. + */ + echo apply_filters( 'login_site_html_link', $html_link ); + ?> +

', '' );