WordPress.org

Make WordPress Core

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

File password-reset-simplify-r5794.patch, 1.9 KB (added by tellyworth, 7 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> 
     
    359360                <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Login'); ?> &raquo;" tabindex="100" /> 
    360361                <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" /> 
    361362        </p> 
     363<?php else : ?> 
     364        <p>&nbsp;</p> 
     365<?php endif; ?> 
    362366</form> 
    363367</div> 
    364368 
    365369<ul> 
    366 <?php if (get_option('users_can_register')) : ?> 
     370<?php if ( in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 
     371        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li> 
     372<?php elseif (get_option('users_can_register')) : ?> 
    367373        <li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li> 
    368374        <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> 
    369375        <li><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('Back to %s'), get_bloginfo('title')); ?></a></li> 
  • wp-admin/wp-admin.css

     
    688688        padding: 0 50px 25px; 
    689689        _width: 325px; 
    690690        _margin: 0 auto; 
     691        height: 200px; 
    691692} 
    692693 
    693694#login #login_error {