WordPress.org

Make WordPress Core

Ticket #16498: lostpassword.patch

File lostpassword.patch, 1.0 KB (added by ktdreyer, 5 years ago)

even better, with the negative mark in the right place

  • wp-login.php

     
    654654 
    655655<?php if ( !$interim_login ) { ?> 
    656656<p id="nav"> 
    657 <?php if ( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 
    658 <?php elseif ( get_option('users_can_register') ) : ?> 
     657<?php if ( !( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) ) : ?> 
     658<?php if ( get_option('users_can_register') ) : ?> 
    659659<a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a> | 
     660<?php endif; ?> 
    660661<a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a> 
    661 <?php else : ?> 
    662 <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a> 
    663662<?php endif; ?> 
    664663</p> 
    665664</div>