Make WordPress Core

Ticket #35449: 35449.1.diff

File 35449.1.diff, 1.1 KB (added by audrasjb, 4 years ago)

Add display param to get_bloginfo( 'title' )

  • src/wp-login.php

    diff --git a/src/wp-login.php b/src/wp-login.php
    index 915020f717..75c65865d9 100644
    a b function login_footer( $input_id = '' ) { 
    282282        // Don't allow interim logins to navigate away from the page.
    283283        if ( ! $interim_login ) {
    284284                ?>
    285                 <p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>">
    286                 <?php
    287 
    288                 /* translators: %s: Site title. */
    289                 printf( _x( '&larr; Go to %s', 'site' ), get_bloginfo( 'title', 'display' ) );
    290 
    291                 ?>
    292                 </a></p>
     285                <p id="backtoblog">
     286                        <?php
     287                        $html_link = sprintf(
     288                                '<a href="%s">%s</a>',
     289                                esc_url( home_url( '/' ) ),
     290                                /* translators: %s: Site title. */
     291                                sprintf(
     292                                        _x( '&larr; Go to %s', 'site' ),
     293                                        get_bloginfo( 'title', 'display' )
     294                                )
     295                        );
     296                        /**
     297                         * Filter the "Go to site" link displayed in the login page footer.
     298                         *
     299                         * @since 5.7.0
     300                         *
     301                         * @param string $link HTML link to the home URL of the current site.
     302                         */
     303                        echo apply_filters( 'login_site_html_link', $html_link );
     304                        ?>
     305                </p>
    293306                <?php
    294307
    295308                the_privacy_policy_link( '<div class="privacy-policy-page-link">', '</div>' );