Make WordPress Core

Ticket #35449: 35449.3.diff

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

Refreshes the patch against trunk and recent string changes

  • src/wp-login.php

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