Ticket #42888: 42888.3.diff
File 42888.3.diff, 22.4 KB (added by , 5 years ago) |
---|
-
src/js/_enqueues/admin/user-profile.js
5 5 /* global ajaxurl, pwsL10n, userProfileL10n */ 6 6 (function($) { 7 7 var updateLock = false, 8 9 8 $pass1Row, 10 $pass1Wrap,11 9 $pass1, 12 $pass1Text,13 $pass1Label,14 10 $pass2, 15 11 $weakRow, 16 12 $weakCheckbox, … … 36 32 } 37 33 38 34 if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) { 39 $pass1 Wrap.addClass( 'show-password' );35 $pass1.attr( 'type', 'text' ); 40 36 } else { 41 37 $toggleButton.trigger( 'click' ); 42 38 } … … 48 44 function bindPass1() { 49 45 currentPass = $pass1.val(); 50 46 51 $pass1Wrap = $pass1.parent();52 53 $pass1Text = $( '<input type="text"/>' )54 .attr( {55 'id': 'pass1-text',56 'name': 'pass1-text',57 'autocomplete': 'off'58 } )59 .addClass( $pass1[0].className )60 .data( 'pw', $pass1.data( 'pw' ) )61 .val( $pass1.val() )62 .on( 'input', function () {63 if ( $pass1Text.val() === currentPass ) {64 return;65 }66 $pass2.val( $pass1Text.val() );67 $pass1.val( $pass1Text.val() ).trigger( 'pwupdate' );68 currentPass = $pass1Text.val();69 } );70 71 $pass1.after( $pass1Text );72 73 47 if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) { 74 48 generatePassword(); 75 49 } … … 80 54 } 81 55 82 56 currentPass = $pass1.val(); 83 if ( $pass1Text.val() !== currentPass ) { 84 $pass1Text.val( currentPass ); 85 } 86 $pass1.add( $pass1Text ).removeClass( 'short bad good strong' ); 57 58 $pass1.removeClass( 'short bad good strong' ); 87 59 showOrHideWeakPasswordCheckbox(); 88 60 } ); 89 61 } 90 62 91 function resetToggle( ) {63 function resetToggle( show ) { 92 64 $toggleButton 93 .data( 'toggle', 0 )94 65 .attr({ 95 'aria-label': userProfileL10n.ariaHide66 'aria-label': show ? userProfileL10n.ariaShow : userProfileL10n.ariaHide 96 67 }) 97 68 .find( '.text' ) 98 .text( userProfileL10n.hide )69 .text( show ? userProfileL10n.show : userProfileL10n.hide ) 99 70 .end() 100 71 .find( '.dashicons' ) 101 .removeClass( 'dashicons-visibility' ) 102 .addClass( 'dashicons-hidden' ); 103 104 $pass1Text.focus(); 105 106 $pass1Label.attr( 'for', 'pass1-text' ); 72 .removeClass( show ? 'dashicons-hidden' : 'dashicons-visibility' ) 73 .addClass( show ? 'dashicons-visibility' : 'dashicons-hidden' ); 107 74 } 108 75 109 76 function bindToggleButton() { 110 77 $toggleButton = $pass1Row.find('.wp-hide-pw'); 111 78 $toggleButton.show().on( 'click', function () { 112 if ( 1 === parseInt( $toggleButton.data( 'toggle' ), 10 ) ) { 113 $pass1Wrap.addClass( 'show-password' ); 114 115 resetToggle(); 116 117 if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) { 118 $pass1Text[0].setSelectionRange( 0, 100 ); 119 } 79 if ( 'password' === $pass1.attr( 'type' ) ) { 80 $pass1.attr( 'type', 'text' ); 81 resetToggle( false ); 120 82 } else { 121 $pass1Wrap.removeClass( 'show-password' ); 122 $toggleButton 123 .data( 'toggle', 1 ) 124 .attr({ 125 'aria-label': userProfileL10n.ariaShow 126 }) 127 .find( '.text' ) 128 .text( userProfileL10n.show ) 129 .end() 130 .find( '.dashicons' ) 131 .removeClass('dashicons-hidden') 132 .addClass('dashicons-visibility'); 83 $pass1.attr( 'type', 'password' ); 84 resetToggle( true ); 133 85 134 $pass1.focus();135 136 $pass1Label.attr( 'for', 'pass1' );137 138 86 if ( ! _.isUndefined( $pass1[0].setSelectionRange ) ) { 139 87 $pass1[0].setSelectionRange( 0, 100 ); 140 88 } 141 89 } 90 $pass1.focus(); 142 91 }); 143 92 } 144 93 … … 147 96 $generateButton, 148 97 $cancelButton; 149 98 150 $pass1Row = $('.user-pass1-wrap'); 151 $pass1Label = $pass1Row.find('th label').attr( 'for', 'pass1-text' ); 99 $pass1Row = $( '.user-pass1-wrap, .user-pass-wrap' ); 152 100 153 // hide this101 // Hide the confirm password field when JavaScript support is enabled. 154 102 $('.user-pass2-wrap').hide(); 155 103 156 104 $submitButton = $( '#submit, #wp-submit' ).on( 'click', function () { … … 168 116 $pass1 = $('#pass1'); 169 117 if ( $pass1.length ) { 170 118 bindPass1(); 119 } else { 120 // Password field for the login form. 121 $pass1 = $( '#user_pass' ); 171 122 } 172 123 173 124 /** … … 189 140 if ( $pass1.is( ':hidden' ) ) { 190 141 $pass1.prop( 'disabled', true ); 191 142 $pass2.prop( 'disabled', true ); 192 $pass1Text.prop( 'disabled', true );193 143 } 194 144 195 145 $passwordWrapper = $pass1Row.find( '.wp-pwd' ); … … 211 161 // Enable the inputs when showing. 212 162 $pass1.attr( 'disabled', false ); 213 163 $pass2.attr( 'disabled', false ); 214 $pass1Text.attr( 'disabled', false );215 164 216 if ( $pass1 Text.val().length === 0 ) {165 if ( $pass1.val().length === 0 ) { 217 166 generatePassword(); 218 167 } 219 220 _.defer( function() {221 $pass1Text.focus();222 if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) {223 $pass1Text[0].setSelectionRange( 0, 100 );224 }225 }, 0 );226 168 } ); 227 169 228 170 $cancelButton = $pass1Row.find( 'button.wp-cancel-pw' ); … … 230 172 updateLock = false; 231 173 232 174 // Clear any entered password. 233 $pass1 Text.val( '' );175 $pass1.val( '' ); 234 176 235 177 // Generate a new password. 236 178 wp.ajax.post( 'generate-password' ) … … 248 190 // Disable the inputs when hiding to prevent autofill and submission. 249 191 $pass1.prop( 'disabled', true ); 250 192 $pass2.prop( 'disabled', true ); 251 $pass1Text.prop( 'disabled', true );252 193 253 resetToggle( );194 resetToggle( false ); 254 195 255 196 if ( $pass1Row.closest( 'form' ).is( '#your-profile' ) ) { 256 197 // Clear password field to prevent update … … 265 206 $pass1.prop( 'disabled', false ); 266 207 $pass2.prop( 'disabled', false ); 267 208 $pass2.val( $pass1.val() ); 268 $pass1Wrap.removeClass( 'show-password' );269 209 }); 270 210 } 271 211 … … 305 245 var passStrength = $('#pass-strength-result')[0]; 306 246 307 247 if ( passStrength.className ) { 308 $pass1.add ( $pass1Text ).addClass( passStrength.className );248 $pass1.addClass( passStrength.className ); 309 249 if ( $( passStrength ).is( '.short, .bad' ) ) { 310 250 if ( ! $weakCheckbox.prop( 'checked' ) ) { 311 251 $submitButtons.prop( 'disabled', true ); -
src/wp-admin/css/forms.css
1370 1370 box-sizing: border-box; 1371 1371 } 1372 1372 1373 #profile-page .form-table #pass1 { 1374 padding-right: 88px; 1375 } 1376 1373 1377 .form-table .form-required.form-invalid td:after { 1374 1378 float: right; 1375 1379 margin: -30px 3px 0 0; -
src/wp-admin/css/install.css
212 212 font-family: Consolas, Monaco, monospace; 213 213 } 214 214 215 .password-input-wrapper { 216 position: relative; 217 } 218 215 219 .wp-hide-pw > .dashicons { 216 line-height: inherit; 220 position: relative; 221 top: 3px; 217 222 } 218 223 219 224 #pass-strength-result { … … 220 225 background-color: #eee; 221 226 border: 1px solid #ddd; 222 227 color: #23282d; 223 margin: -2px 5px 5px 0 px;228 margin: -2px 5px 5px 0; 224 229 padding: 3px 5px; 225 230 text-align: center; 226 231 width: 218px; … … 374 379 box-sizing: border-box; 375 380 } 376 381 382 .wp-core-ui .wp-hide-pw { 383 background: transparent; 384 border: 1px solid transparent; 385 box-shadow: none; 386 line-height: 2; 387 margin: 0; 388 padding: 5px 9px; 389 position: absolute; 390 right: 0; 391 top: 0; 392 } 393 394 .button.wp-hide-pw .text { 395 display: none; 396 } 397 398 #pass-strength-result { 399 width: 100%; 400 box-sizing: border-box; 401 margin: -1px 0 5px; 402 padding: 8px; 403 } 377 404 } 378 405 379 406 body.language-chooser { -
src/wp-admin/css/login.css
40 40 0 0 2px 1px rgba(30, 140, 190, 0.8); 41 41 } 42 42 43 .ie8 a:focus {44 outline: #5b9dd9 solid 1px;45 }46 47 43 p { 48 44 line-height: 1.5; 49 45 } … … 82 78 position: relative; 83 79 } 84 80 85 .login .input.password-input {86 margin: 0;87 }88 89 81 .login .input::-ms-clear { 90 82 display: none; 91 83 } … … 105 97 padding: 5px 9px; 106 98 position: absolute; 107 99 right: 0; 108 top: 0;100 top: 3px; 109 101 } 110 102 111 103 .login .button.button-secondary:hover { … … 124 116 transform: none; 125 117 } 126 118 119 .login .wp-pwd { 120 position: relative; 121 } 122 123 .no-js .hide-if-no-js { 124 display: none; 125 } 126 127 127 .login form { 128 128 margin-top: 20px; 129 129 margin-left: 0; … … 157 157 font-size: 14px; 158 158 } 159 159 160 .login form .forgetmenot label { 161 font-size: 12px; 162 line-height: 1.58333333; 160 .login form .forgetmenot label, 161 .login form .pw-weak label { 162 line-height: 1.5; 163 vertical-align: baseline; 163 164 } 164 165 165 166 .login h1 { … … 232 233 } 233 234 234 235 .login form .input, 235 .login input[type="text"] { 236 .login input[type="text"], 237 .login input[type="password"] { 236 238 font-size: 24px; 237 239 width: 100%; 238 240 padding: 5px; 239 margin: 2px 6px 16px 0;241 margin: 3px 6px 16px 0; 240 242 } 241 243 244 .login input[type="password"], 242 245 .login-action-rp form .input, 243 246 .login-action-rp input[type="text"] { 244 247 padding: 5px 45px 5px 5px; … … 250 253 background: #fbfbfb; 251 254 } 252 255 253 .ie7 .login form .input, 254 .ie8 .login form .input { 255 font-family: sans-serif; 256 .login-action-rp input[type="text"], 257 .login-action-rp input[type="password"] { 258 box-shadow: none; 259 margin-bottom: 0; 256 260 } 257 261 262 258 263 .login-action-rp input[type="text"] { 259 264 box-shadow: none; 260 margin: 0;261 265 } 262 266 263 267 .login #pass-strength-result { -
src/wp-admin/install.php
142 142 </label> 143 143 </th> 144 144 <td> 145 <div class=" ">145 <div class="password-input-wrapper"> 146 146 <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?> 147 147 <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" /> 148 148 <button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> -
src/wp-login.php
186 186 187 187 ?> 188 188 </head> 189 <body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>"> 189 <body class="login no-js <?php echo esc_attr( implode( ' ', $classes ) ); ?>"> 190 <script type="text/javascript"> 191 document.body.className = document.body.className.replace( 'no-js', 'js' ); 192 </script> 190 193 <?php 191 194 /** 192 195 * Fires in the login page header after the body tag is opened. … … 431 434 $errors->add( 432 435 'retrieve_password_email_failure', 433 436 sprintf( 437 /* translators: %s: URL to support page for resetting your password */ 434 438 __( '<strong>ERROR</strong>: The email could not be sent. Your site may not be correctly configured to send emails. <a href="%s">Get support for resetting your password</a>.' ), 435 439 esc_url( $support ) 436 440 ) … … 467 471 } 468 472 469 473 $url = dirname( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ) ); 470 if ( $url != get_option( 'siteurl' )) {474 if ( get_option( 'siteurl' ) != $url ) { 471 475 update_option( 'siteurl', $url ); 472 476 } 473 477 } … … 620 624 ?> 621 625 622 626 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> 623 <p> 624 <label for="user_login" ><?php _e( 'Username or Email Address' ); ?><br /> 625 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /></label> 626 </p> 627 628 <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label> 629 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /> 627 630 <?php 628 631 /** 629 632 * Fires inside the lostpassword form tags, before the hidden fields. … … 633 636 do_action( 'lostpassword_form' ); 634 637 ?> 635 638 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> 636 < p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Get New Password' ); ?>" /></p>639 <div class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Get New Password' ); ?>" /></div> 637 640 </form> 638 641 639 < pid="nav">640 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>642 <div id="nav"> 643 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> 641 644 <?php 642 645 if ( get_option( 'users_can_register' ) ) : 643 646 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); … … 646 649 647 650 /** This filter is documented in wp-includes/general-template.php */ 648 651 echo apply_filters( 'register', $registration_url ); 649 endif;652 endif; 650 653 ?> 651 </ p>654 </div> 652 655 653 656 <?php 654 657 login_footer( 'user_login' ); … … 720 723 <input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" /> 721 724 722 725 <div class="user-pass1-wrap"> 723 <p>724 <label for="pass1"><?php _e( 'New password' ); ?></label>725 </p>726 726 727 <label for="pass1"><?php _e( 'New password' ); ?></label> 728 727 729 <div class="wp-pwd"> 728 730 <div class="password-input-wrapper"> 729 731 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" /> 730 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js"> 732 733 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 731 734 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> 732 735 </button> 736 733 737 </div> 734 738 <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> 735 739 </div> 736 740 <div class="pw-weak"> 737 <label> 738 <input type="checkbox" name="pw_weak" class="pw-checkbox" /> 739 <?php _e( 'Confirm use of weak password' ); ?> 740 </label> 741 <input type="checkbox" name="pw_weak" id="pw-weak" class="pw-checkbox" /> 742 <label for="pw-weak"><?php _e( 'Confirm use of weak password' ); ?></label> 741 743 </div> 742 744 </div> 743 745 744 < pclass="user-pass2-wrap">745 <label for="pass2"><?php _e( 'Confirm new password' ); ?></label> <br />746 <div class="user-pass2-wrap"> 747 <label for="pass2"><?php _e( 'Confirm new password' ); ?></label> 746 748 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /> 747 </ p>749 </div> 748 750 749 751 <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> 750 752 <br class="clear" /> … … 760 762 do_action( 'resetpass_form', $user ); 761 763 ?> 762 764 <input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" /> 763 < p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Reset Password' ); ?>" /></p>765 <div class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Reset Password' ); ?>" /></div> 764 766 </form> 765 767 766 < pid="nav">767 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>768 <div id="nav"> 769 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> 768 770 <?php 769 771 if ( get_option( 'users_can_register' ) ) : 770 772 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); … … 773 775 774 776 /** This filter is documented in wp-includes/general-template.php */ 775 777 echo apply_filters( 'register', $registration_url ); 776 endif;778 endif; 777 779 ?> 778 </ p>780 </div> 779 781 780 782 <?php 781 783 login_footer( 'user_pass' ); … … 832 834 login_header( __( 'Registration Form' ), '<p class="message register">' . __( 'Register For This Site' ) . '</p>', $errors ); 833 835 ?> 834 836 <form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate"> 835 < p>836 <label for="user_login"><?php _e( 'Username' ); ?>< br />837 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" /> </label>838 </ p>839 < p>840 <label for="user_email"><?php _e( 'Email' ); ?>< br />841 <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /> </label>842 </ p>837 <div> 838 <label for="user_login"><?php _e( 'Username' ); ?></label> 839 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" /> 840 </div> 841 <div> 842 <label for="user_email"><?php _e( 'Email' ); ?></label> 843 <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /> 844 </div> 843 845 <?php 844 846 /** 845 847 * Fires following the 'Email' field in the user registration form. … … 851 853 <p id="reg_passmail"><?php _e( 'Registration confirmation will be emailed to you.' ); ?></p> 852 854 <br class="clear" /> 853 855 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> 854 < p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Register' ); ?>" /></p>856 <div class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Register' ); ?>" /></div> 855 857 </form> 856 858 857 < pid="nav">858 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>859 <div id="nav"> 860 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> 859 861 <?php echo esc_html( $login_link_separator ); ?> 860 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>861 </ p>862 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 863 </div> 862 864 863 865 <?php 864 866 login_footer( 'user_login' ); … … 997 999 exit; 998 1000 } 999 1001 1000 if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url()) ) {1002 if ( ( empty( $redirect_to ) || 'wp-admin/' == $redirect_to || admin_url() == $redirect_to ) ) { 1001 1003 // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile. 1002 1004 if ( is_multisite() && ! get_active_blog_for_user( $user->ID ) && ! is_super_admin( $user->ID ) ) { 1003 1005 $redirect_to = user_admin_url(); … … 1074 1076 } else { 1075 1077 $aria_describedby_error = ''; 1076 1078 } 1079 1080 wp_enqueue_script( 'user-profile' ); 1077 1081 ?> 1078 1082 1079 1083 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> 1080 <p> 1081 <label for="user_login"><?php _e( 'Username or Email Address' ); ?><br /> 1082 <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /></label> 1083 </p> 1084 <p> 1085 <label for="user_pass"><?php _e( 'Password' ); ?><br /> 1086 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input" value="" size="20" /></label> 1087 </p> 1084 1085 <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label> 1086 <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /> 1087 1088 <div class="user-pass-wrap"> 1089 <label for="user_pass"><?php _e( 'Password' ); ?></label> 1090 <div class="wp-pwd"> 1091 <div class="password-input-wrapper"> 1092 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" /> 1093 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>"> 1094 <span class="dashicons dashicons-visibility" aria-hidden="true"></span> 1095 </button> 1096 </div> 1097 </div> 1098 </div> 1088 1099 <?php 1089 1100 /** 1090 1101 * Fires following the 'Password' field in the login form. … … 1093 1104 */ 1094 1105 do_action( 'login_form' ); 1095 1106 ?> 1096 < p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <?php esc_html_e( 'Remember Me' ); ?></label></p>1097 < pclass="submit">1107 <div class="forgetmenot"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <label for="rememberme"><?php esc_html_e( 'Remember Me' ); ?></label></div> 1108 <div class="submit"> 1098 1109 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Log In' ); ?>" /> 1099 <?php 1110 <?php if ( $interim_login ) { ?> 1100 1111 <input type="hidden" name="interim-login" value="1" /> 1101 <?php} else { ?>1112 <?php } else { ?> 1102 1113 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> 1103 <?php } ?>1114 <?php } ?> 1104 1115 <?php if ( $customize_login ) : ?> 1105 1116 <input type="hidden" name="customize-login" value="1" /> 1106 <?php endif; ?>1117 <?php endif; ?> 1107 1118 <input type="hidden" name="testcookie" value="1" /> 1108 </ p>1119 </div> 1109 1120 </form> 1110 1121 1111 1122 <?php if ( ! $interim_login ) { ?> 1112 <pid="nav">1123 <div id="nav"> 1113 1124 <?php 1114 1125 if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : 1115 1126 if ( get_option( 'users_can_register' ) ) : … … 1121 1132 echo esc_html( $login_link_separator ); 1122 1133 endif; 1123 1134 ?> 1124 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>1135 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 1125 1136 <?php endif; ?> 1126 </p>1127 <?php } ?>1137 </div> 1138 <?php } ?> 1128 1139 1129 1140 <script type="text/javascript"> 1130 1141 function wp_attempt_focus(){