Make WordPress Core

Changeset 41843


Ignore:
Timestamp:
10/12/2017 04:56:05 AM (7 years ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r41782 r41843  
    136136    $login_header_title = apply_filters( 'login_headertitle', $login_header_title );
    137137
     138    /*
     139     * To match the URL/title set above, Multisite sites have the blog name,
     140     * while single sites get the header title.
     141     */
     142    if ( is_multisite() ) {
     143        $login_header_text = bloginfo( 'name' );
     144    } else {
     145        $login_header_text = $login_header_title;
     146    }
     147
    138148    $classes = array( 'login-action-' . $action, 'wp-core-ui' );
    139149    if ( is_rtl() )
     
    172182    ?>
    173183    <div id="login">
    174         <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
     184        <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php echo $login_header_text; ?></a></h1>
    175185    <?php
    176186
Note: See TracChangeset for help on using the changeset viewer.