WordPress.org

Make WordPress Core

Ticket #16498: 16498.2.patch

File 16498.2.patch, 1.4 KB (added by bpetty, 16 months ago)
  • wp-login.php

    diff --git wp-login.php wp-login.php
    index 239e4a9..23e94bf 100644
    default: 
    704704 
    705705<?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> 
    713 <?php endif; ?> 
     707<?php 
     708        $lost_password_link = '<a href="' . esc_url( wp_lostpassword_url() ) . '" title="' . esc_attr__( 'Password Lost and Found' ) . '">' . __( 'Lost your password?' ) . '</a>'; 
     709        if ( isset( $_GET['checkemail'] ) && in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) { 
     710                // Intentionally empty. 
     711        } elseif ( get_option( 'users_can_register' ) ) { 
     712                ?><a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> | <?php 
     713                echo $lost_password_link; 
     714        } else { 
     715                echo $lost_password_link; 
     716        } 
     717?> 
    714718</p> 
    715719<?php } ?> 
    716720