WordPress.org

Make WordPress Core

Ticket #4527: password-reset-simplify-r5751.patch

File password-reset-simplify-r5751.patch, 1.4 KB (added by tellyworth, 8 years ago)
  • wp-login.php

     
    345345?> 
    346346 
    347347<form name="loginform" id="loginform" action="wp-login.php" method="post"> 
     348<?php if ( !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 
    348349        <p> 
    349350                <label><?php _e('Username:') ?><br /> 
    350351                <input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label> 
     
    360361                <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" /> 
    361362        </p> 
    362363</form> 
     364<?php endif; ?> 
    363365</div> 
    364366 
    365367<ul> 
    366 <?php if (get_option('users_can_register')) : ?> 
     368<?php if ( in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 
     369        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li> 
     370<?php elseif (get_option('users_can_register')) : ?> 
    367371        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li> 
    368372        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li> 
    369373        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li>