Ticket #30685: 30685.patch
| File 30685.patch, 11.7 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/login.css
14 14 15 15 body { 16 16 background: #f1f1f1; 17 min-width: 0; 17 min-width: 0; /* May want to revisit this see #18314 */ 18 18 color: #444; 19 19 font-family: "Open Sans", sans-serif; 20 20 font-size: 13px; 21 line-height: 1.4 em;21 line-height: 1.4; 22 22 } 23 23 24 24 a { 25 color: #0074a2; 26 -webkit-transition-property: border, background, color; 27 transition-property: border, background, color; 28 -webkit-transition-duration: .05s; 29 transition-duration: .05s; 30 -webkit-transition-timing-function: ease-in-out; 31 transition-timing-function: ease-in-out; 25 color: #6e6e6e; 26 text-decoration: none; 27 outline: 0; 32 28 } 33 29 34 a { 35 outline: 0; 30 .notice a { 31 color: #0074a2; 32 text-decoration: underline; 36 33 } 37 34 38 35 a:hover, … … 42 39 43 40 a:focus { 44 41 color: #124964; 42 -webkit-box-shadow: 43 0 0 0 1px #5b9dd9, 44 0 0 2px 1px rgba(30, 140, 190, .8); 45 box-shadow: 46 0 0 0 1px #5b9dd9, 47 0 0 2px 1px rgba(30, 140, 190, .8); 45 48 } 46 49 47 a:focus, 48 a:active { 49 outline: thin dotted; 50 .ie8 a:focus { 51 outline: #5b9dd9 solid 1px; 50 52 } 51 53 52 54 p { … … 53 55 line-height: 1.5; 54 56 } 55 57 56 .login .message { 58 #login_error, 59 .login .notice { 60 background: #fff; 61 -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); 62 box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); 63 margin: 20px 0; 64 padding: 0; 65 } 66 67 .login .notice { 68 padding: 12px; 69 } 70 71 .login .notice-info { 57 72 border-left: 4px solid #2ea2cc; 58 padding: 1px 12px;59 background-color: #fff;60 -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);61 box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);62 73 } 63 74 64 .login #login_error {75 .login .notice-error { 65 76 border-left: 4px solid #dd3d36; 66 background: #fff;67 -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);68 box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);69 77 } 70 78 71 #loginform p.submit, 72 .login-action-lostpassword p.submit { 73 border: none;74 margin: -10px 0 20px; /* May want to revisit this */79 .login .login-error-list { 80 list-style: none; 81 margin: 0; 82 padding: 0; 75 83 } 76 84 77 .login * { 85 .login .login-error-list .notice { 86 margin: 1px 0; 87 } 88 89 .notice p { 78 90 margin: 0; 79 91 padding: 0; 80 92 } 81 93 82 94 .login form { 83 margin-top: 20px; 84 margin-left: 0; 95 margin: 20px 0 24px; 85 96 padding: 26px 24px 46px; 86 font-weight: normal;87 97 overflow: hidden; 88 98 background: #fff; 89 99 -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); … … 90 100 box-shadow: 0 1px 3px rgba(0,0,0,0.13); 91 101 } 92 102 93 .login form .forgetmenot { 94 font-weight: normal; 103 .login .forgetmenot { 95 104 float: left; 96 margin-bottom: 0;97 105 } 98 106 99 107 .login .button-primary { … … 101 109 } 102 110 103 111 #login form p { 104 margin -bottom: 0;112 margin: 0; 105 113 } 106 114 107 #login form p.submit { 115 #login #reg_passmail, 116 #login .description.indicator-hint { 117 margin-bottom: 18px; 118 } 119 120 #login .submit { 108 121 margin: 0; 109 122 padding: 0; 110 123 } … … 114 127 font-size: 14px; 115 128 } 116 129 117 .login form.forgetmenot label {130 .login .forgetmenot label { 118 131 font-size: 12px; 119 132 line-height: 19px; 120 133 } 121 134 122 135 .login h1 { 123 text-align: center; 136 margin: 0; 137 text-align: left; 124 138 } 125 139 126 140 .login h1 a { … … 130 144 background-size: 84px; 131 145 background-position: center top; 132 146 background-repeat: no-repeat; 133 color: # 999;147 color: #6e6e6e; 134 148 height: 84px; 135 149 font-size: 20px; 136 150 font-weight: normal; 137 151 line-height: 1.3em; 138 152 margin: 0 auto 25px; 139 padding: 0;140 153 text-decoration: none; 141 154 width: 84px; 142 155 text-indent: -9999px; 143 outline: none;144 156 overflow: hidden; 145 157 display: block; 158 -webkit-box-shadow: none; 159 box-shadow: none; 146 160 } 147 161 148 162 #login { … … 151 165 margin: auto; 152 166 } 153 167 154 #login_error, 155 .login .message { 156 margin-left: 0; 157 padding: 12px; 158 } 159 160 .login #nav, 161 .login #backtoblog { 162 font-size: 13px; 168 #nav, 169 #backtoblog { 163 170 padding: 0 24px 0; 164 171 } 165 172 166 .login #nav {167 margin: 24px 0 0 0;168 }169 170 173 #backtoblog { 171 174 margin: 16px 0 0 0; 172 175 } 173 176 174 .login #nav a,175 .login #backtoblog a {176 text-decoration: none;177 color: #999;178 }179 180 .login #nav a:hover,181 .login #backtoblog a:hover,182 .login h1 a:hover {183 color: #2ea2cc;184 }185 186 177 .login form .input, 187 178 .login input[type="text"] { 188 179 font-size: 24px; … … 191 182 margin: 2px 6px 16px 0; 192 183 } 193 184 194 .login form .input, 195 .login input[type="text"], 196 .login form input[type="checkbox"] { 185 .login input { 197 186 background: #fbfbfb; 198 187 } 199 188 200 .ie7 .login form.input,201 .ie8 .login form.input {189 .ie7 .login .input, 190 .ie8 .login .input { 202 191 font-family: sans-serif; 203 192 } 204 193 205 .login#pass-strength-result {194 #pass-strength-result { 206 195 width: 250px; 207 196 font-weight: 600; 208 197 margin: 12px 0 6px; 209 198 padding: 6px 5px; 210 text-align: center;211 199 } 212 200 213 201 .mobile #login { … … 214 202 padding: 20px 0; 215 203 } 216 204 217 .mobile #login form,218 .mobile #login .message,219 .mobile #login_error {220 margin-left: 0;221 }222 223 .mobile #login #nav,224 .mobile #login #backtoblog {225 margin-left: 8px;226 }227 228 205 .mobile #login h1 a { 229 206 width: auto; 230 207 } … … 242 219 width: auto; 243 220 } 244 221 245 .interim-login #login_error,246 .interim-login.login .message {247 margin: 0 0 16px;248 }249 250 222 .interim-login.login form { 251 223 margin: 0; 252 224 } … … 262 234 } 263 235 264 236 .interim-login input[type=checkbox]:checked:before { 265 width: 16px;266 237 font: normal 21px/1 'dashicons'; 267 margin : -3px 0 0-4px;238 margin-left: -4px; 268 239 } 269 240 } -
src/wp-includes/js/wp-auth-check.js
47 47 }).attr( 'src', form.data('src') ); 48 48 49 49 $('#wp-auth-check-form').append( frame ); 50 $( 'body' ).addClass( 'modal-open' ); 50 51 } 51 52 52 53 wrap.removeClass('hidden'); … … 80 81 wrap.fadeOut( 200, function() { 81 82 wrap.addClass('hidden').css('display', ''); 82 83 $('#wp-auth-check-frame').remove(); 84 $( 'body' ).removeClass( 'modal-open' ); 83 85 }); 84 86 } 85 87 -
src/wp-login.php
180 180 if ( 'message' == $severity ) 181 181 $messages .= ' ' . $error_message . "<br />\n"; 182 182 else 183 $errors .= ' ' . $error_message . "<br />\n";183 $errors .= '<li class="notice notice-error">' . $error_message . '</li>'; 184 184 } 185 185 } 186 186 187 if ( ! empty( $errors ) ) { 187 188 /** 188 189 * Filter the error messages displayed above the login form. … … 191 192 * 192 193 * @param string $errors Login error message. 193 194 */ 194 echo '<div id="login_error"> ' . apply_filters( 'login_errors', $errors ) . "</div>\n";195 echo '<div id="login_error"><ul class="login-error-list">' . apply_filters( 'login_errors', $errors ) . "</ul></div>\n"; 195 196 } 196 197 if ( ! empty( $messages ) ) { 197 198 /** … … 201 202 * 202 203 * @param string $messages Login messages. 203 204 */ 204 echo '< p class="message">' . apply_filters( 'login_messages', $messages ) . "</p>\n";205 echo '<div class="notice notice-info"><p>' . apply_filters( 'login_messages', $messages ) . "</p></div>\n"; 205 206 } 206 207 } 207 208 } // End of login_header() … … 216 217 217 218 // Don't allow interim logins to navigate away from the page. 218 219 if ( ! $interim_login ): ?> 219 <p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Are you lost?' ); ?>"><?php printf( __( '← Back to %s' ), get_bloginfo( 'title', 'display' ) ); ?></a></p>220 <p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php printf( __( '← Back to %s' ), get_bloginfo( 'title', 'display' ) ); ?></a></p> 220 221 <?php endif; ?> 221 222 222 223 </div> … … 235 236 * @since 3.1.0 236 237 */ 237 238 do_action( 'login_footer' ); ?> 238 <div class="clear"></div>239 239 </body> 240 240 </html> 241 241 <?php … … 526 526 */ 527 527 do_action( 'lost_password' ); 528 528 529 login_header( __('Lost Password'), '<p class="message">' . __('Please enter your username or email address. You will receive a link to create a new password via email.') . '</p>', $errors);529 login_header( __( 'Lost Password' ), '<div class="notice notice-info"><p>' . __( 'Please enter your username or email address. You will receive a link to create a new password via email.' ) . '</p></div>', $errors ); 530 530 531 531 $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : ''; 532 532 … … 612 612 if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) { 613 613 reset_password($user, $_POST['pass1']); 614 614 setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); 615 login_header( __( 'Password Reset' ), '< p class="message reset-pass">' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( wp_login_url() ) . '">' . __( 'Log in' ) . '</a></p>' );615 login_header( __( 'Password Reset' ), '<div class="notice notice-info"><p>' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( wp_login_url() ) . '">' . __( 'Log in' ) . '</a></p></div>' ); 616 616 login_footer(); 617 617 exit; 618 618 } … … 620 620 wp_enqueue_script('utils'); 621 621 wp_enqueue_script('user-profile'); 622 622 623 login_header( __('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );623 login_header( __( 'Reset Password' ), '<div class="notice notice-info"><p>' . __( 'Enter your new password below.' ) . '</p></div>', $errors ); 624 624 625 625 ?> 626 626 <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off"> … … 637 637 638 638 <div id="pass-strength-result" class="hide-if-no-js"><?php _e('Strength indicator'); ?></div> 639 639 <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> 640 <br class="clear" />641 640 642 641 <?php 643 642 /** … … 709 708 * @param string $registration_redirect The redirect destination URL. 710 709 */ 711 710 $redirect_to = apply_filters( 'registration_redirect', $registration_redirect ); 712 login_header( __('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);711 login_header( __( 'Registration Form' ), '<div class="notice notice-info"><p>' . __( 'Register for this site.' ) . '</p></div>', $errors ); 713 712 ?> 714 713 715 714 <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate"> … … 730 729 do_action( 'register_form' ); 731 730 ?> 732 731 <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p> 733 <br class="clear" />734 732 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> 735 733 <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> 736 734 </form> … … 737 735 738 736 <p id="nav"> 739 737 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> | 740 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ) ?>"><?php _e( 'Lost your password?' ); ?></a>738 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 741 739 </p> 742 740 743 741 <?php … … 800 798 801 799 if ( !is_wp_error($user) && !$reauth ) { 802 800 if ( $interim_login ) { 803 $message = '< p class="message">' . __('You have logged in successfully.') . '</p>';801 $message = '<div class="notice notice-info"><p>' . __( 'You have logged in successfully.' ) . '</p></div>'; 804 802 $interim_login = 'success'; 805 803 login_header( '', $message ); ?> 806 804 </div> … … 914 912 echo apply_filters( 'register', $registration_url ) . ' | '; 915 913 endif; 916 914 ?> 917 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>915 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 918 916 <?php endif; ?> 919 917 </p> 920 918 <?php } ?>