From a0a05744a96330a73ae78bb8ff6b6b6feda0c6e6 Mon Sep 17 00:00:00 2001 From: pento Date: Thu, 12 Oct 2017 04:56:05 +0000 Subject: [PATCH] Login: On the single site login screen, match the logo link text with the title. Previously, the (W) logo on the single site login screen linked to wordpress.org, with an appropriate `title` attribute, but the link text was the blog name. To fix this discrepency, the link text is now the same as the `title` attribute. Props pento, obrienlabs, afercia, flixos90, lukecavanagh, and the infinite stack of bikesheds that WordPress is balanced upon. Fixes #34625. git-svn-id: https://develop.svn.wordpress.org/trunk@41843 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-login.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wp-login.php b/src/wp-login.php index 5159eab6ff..9bd4b2a6b0 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -135,6 +135,16 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { */ $login_header_title = apply_filters( 'login_headertitle', $login_header_title ); + /* + * To match the URL/title set above, Multisite sites have the blog name, + * while single sites get the header title. + */ + if ( is_multisite() ) { + $login_header_text = bloginfo( 'name' ); + } else { + $login_header_text = $login_header_title; + } + $classes = array( 'login-action-' . $action, 'wp-core-ui' ); if ( is_rtl() ) $classes[] = 'rtl'; @@ -171,7 +181,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { do_action( 'login_header' ); ?>
-

+