Make WordPress Core

Ticket #41514: 41514.2.patch

File 41514.2.patch, 1.1 KB (added by birgire, 7 years ago)
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index e237665..8f14cdf 100644
    default: 
    956956
    957957<?php if ( ! $interim_login ) { ?>
    958958<p id="nav">
    959 <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
    960         if ( get_option( 'users_can_register' ) ) :
     959        <?php
     960        if ( get_option( 'users_can_register' ) ) {
    961961                $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
    962962
    963963                /** This filter is documented in wp-includes/general-template.php */
    964                 echo apply_filters( 'register', $registration_url );
     964                echo apply_filters( 'register', $registration_url ) . ' | ';
     965        }
    965966
    966                 echo esc_html( $login_link_separator );
    967         endif;
     967        if ( ! isset( $_GET['checkemail'] ) || 'newpass' !== $_GET['checkemail'] ) {
     968                printf( '<a href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
     969        }
    968970        ?>
    969         <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
    970 <?php endif; ?>
    971 </p>
     971</p>
    972972<?php } ?>
    973973
    974974<script type="text/javascript">