WordPress.org

Make WordPress Core

Ticket #16498: 16498.3.patch

File 16498.3.patch, 1.4 KB (added by SergeyBiryukov, 9 years ago)
  • wp-login.php

     
    702702        </p>
    703703</form>
    704704
    705 <?php if ( !$interim_login ) { ?>
     705<?php if ( ! $interim_login ) { ?>
    706706<p id="nav">
    707 <?php if ( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
    708 <?php elseif ( get_option('users_can_register') ) : ?>
    709 <a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> |
    710 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
    711 <?php else : ?>
    712 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
     707<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : ?>
     708        <?php if ( get_option( 'users_can_register' ) ) : ?>
     709        <a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> |
     710        <?php endif; ?>
     711        <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
    713712<?php endif; ?>
    714713</p>
    715714<?php } ?>