Ticket #30685: 30685.2.patch
| File 30685.2.patch, 10.6 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/login.css
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 { … … 35 35 outline: 0; 36 36 } 37 37 38 .notice a { 39 color: #0073aa; 40 text-decoration: underline; 41 } 42 38 43 a:hover, 39 44 a:active { 40 45 color: #00a0d2; … … 58 63 line-height: 1.5; 59 64 } 60 65 61 .login .message { 62 border-left: 4px solid #00a0d2; 63 padding: 1px 12px; 64 background-color: #fff; 65 -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); 66 box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1); 66 #login_error, 67 .login .notice { 68 background: #fff; 69 -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); 70 box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); 71 margin: 20px 0; 72 padding: 0; 67 73 } 68 74 69 .login #login_error { 75 .login .notice { 76 padding: 12px; 77 } 78 79 .login .notice-info { 80 border-left: 4px solid #2ea2cc; 81 } 82 83 .login .notice-error { 70 84 border-left: 4px solid #dd3d36; 71 background: #fff;72 -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);73 box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);74 85 } 75 86 76 #loginform p.submit, 77 .login-action-lostpassword p.submit { 78 border: none;79 margin: -10px 0 20px; /* May want to revisit this */87 .login .login-error-list { 88 list-style: none; 89 margin: 0; 90 padding: 0; 80 91 } 81 92 82 .login * { 93 .login .login-error-list .notice { 94 margin: 1px 0; 95 } 96 97 .notice p { 83 98 margin: 0; 84 99 padding: 0; 85 100 } 86 101 87 102 .login form { 88 margin-top: 20px; 89 margin-left: 0; 103 margin: 20px 0 24px; 90 104 padding: 26px 24px 46px; 91 font-weight: normal;92 105 overflow: hidden; 93 106 background: #fff; 94 107 -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); … … 95 108 box-shadow: 0 1px 3px rgba(0,0,0,0.13); 96 109 } 97 110 98 .login form .forgetmenot { 99 font-weight: normal; 111 .login .forgetmenot { 100 112 float: left; 101 margin-bottom: 0;102 113 } 103 114 104 115 .login .button-primary { … … 106 117 } 107 118 108 119 #login form p { 109 margin -bottom: 0;120 margin: 0; 110 121 } 111 122 112 #login form p.submit { 123 #login #reg_passmail, 124 #login .description.indicator-hint { 125 margin-bottom: 18px; 126 } 127 128 #login .submit { 113 129 margin: 0; 114 130 padding: 0; 115 131 } … … 119 135 font-size: 14px; 120 136 } 121 137 122 .login form.forgetmenot label {138 .login .forgetmenot label { 123 139 font-size: 12px; 124 140 line-height: 19px; 125 141 } 126 142 127 143 .login h1 { 128 text-align: center; 144 margin: 0; 145 text-align: left; 129 146 } 130 147 131 148 .login h1 a { … … 135 152 background-size: 84px; 136 153 background-position: center top; 137 154 background-repeat: no-repeat; 138 color: # 999;155 color: #6e6e6e; 139 156 height: 84px; 140 157 font-size: 20px; 141 158 font-weight: normal; 142 159 line-height: 1.3em; 143 160 margin: 0 auto 25px; 144 padding: 0;145 161 text-decoration: none; 146 162 width: 84px; 147 163 text-indent: -9999px; 148 outline: none;149 164 overflow: hidden; 150 165 display: block; 166 -webkit-box-shadow: none; 167 box-shadow: none; 151 168 } 152 169 153 170 #login { … … 156 173 margin: auto; 157 174 } 158 175 159 #login_error, 160 .login .message { 161 margin-left: 0; 162 padding: 12px; 163 } 164 165 .login #nav, 166 .login #backtoblog { 167 font-size: 13px; 176 #nav, 177 #backtoblog { 168 178 padding: 0 24px 0; 169 179 } 170 180 171 .login #nav {172 margin: 24px 0 0 0;173 }174 175 181 #backtoblog { 176 182 margin: 16px 0 0 0; 177 183 } … … 202 208 margin: 2px 6px 16px 0; 203 209 } 204 210 205 .login form .input, 206 .login input[type="text"], 207 .login form input[type="checkbox"] { 211 .login input { 208 212 background: #fbfbfb; 209 213 } 210 214 211 .ie7 .login form.input,212 .ie8 .login form.input {215 .ie7 .login .input, 216 .ie8 .login .input { 213 217 font-family: sans-serif; 214 218 } 215 219 216 .login#pass-strength-result {220 #pass-strength-result { 217 221 width: 250px; 218 222 font-weight: 600; 219 223 margin: 12px 0 6px; 220 224 padding: 6px 5px; 221 text-align: center;222 225 } 223 226 224 227 .mobile #login { … … 225 228 padding: 20px 0; 226 229 } 227 230 228 .mobile #login form,229 .mobile #login .message,230 .mobile #login_error {231 margin-left: 0;232 }233 234 .mobile #login #nav,235 .mobile #login #backtoblog {236 margin-left: 8px;237 }238 239 231 body.interim-login { 240 232 height: auto; 241 233 } … … 249 241 width: auto; 250 242 } 251 243 252 .interim-login #login_error,253 .interim-login.login .message {254 margin: 0 0 16px;255 }256 257 244 .interim-login.login form { 258 245 margin: 0; 259 246 } … … 269 256 } 270 257 271 258 .interim-login input[type=checkbox]:checked:before { 272 width: 16px;273 259 font: normal 21px/1 'dashicons'; 274 margin : -3px 0 0-4px;260 margin-left: -4px; 275 261 } 276 262 } -
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 $( 'body' ).addClass( 'modal-open' ); -
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 … … 552 552 */ 553 553 do_action( 'lost_password' ); 554 554 555 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);555 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 ); 556 556 557 557 $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : ''; 558 558 … … 638 638 if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) { 639 639 reset_password($user, $_POST['pass1']); 640 640 setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); 641 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>' );641 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>' ); 642 642 login_footer(); 643 643 exit; 644 644 } … … 646 646 wp_enqueue_script('utils'); 647 647 wp_enqueue_script('user-profile'); 648 648 649 login_header( __('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );649 login_header( __( 'Reset Password' ), '<div class="notice notice-info"><p>' . __( 'Enter your new password below.' ) . '</p></div>', $errors ); 650 650 651 651 ?> 652 652 <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off"> … … 665 665 666 666 <div id="pass-strength-result" class="hide-if-no-js"><?php _e('Strength indicator'); ?></div> 667 667 <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p> 668 <br class="clear" />669 668 670 669 <?php 671 670 /** … … 737 736 * @param string $registration_redirect The redirect destination URL. 738 737 */ 739 738 $redirect_to = apply_filters( 'registration_redirect', $registration_redirect ); 740 login_header( __('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);739 login_header( __( 'Registration Form' ), '<div class="notice notice-info"><p>' . __( 'Register for this site.' ) . '</p></div>', $errors ); 741 740 ?> 742 741 743 742 <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate"> … … 758 757 do_action( 'register_form' ); 759 758 ?> 760 759 <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p> 761 <br class="clear" />762 760 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> 763 761 <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> 764 762 </form> … … 765 763 766 764 <p id="nav"> 767 765 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> | 768 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ) ?>"><?php _e( 'Lost your password?' ); ?></a>766 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 769 767 </p> 770 768 771 769 <?php … … 828 826 829 827 if ( !is_wp_error($user) && !$reauth ) { 830 828 if ( $interim_login ) { 831 $message = '< p class="message">' . __('You have logged in successfully.') . '</p>';829 $message = '<div class="notice notice-info"><p>' . __( 'You have logged in successfully.' ) . '</p></div>'; 832 830 $interim_login = 'success'; 833 831 login_header( '', $message ); ?> 834 832 </div> … … 948 946 echo apply_filters( 'register', $registration_url ) . ' | '; 949 947 endif; 950 948 ?> 951 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>949 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> 952 950 <?php endif; ?> 953 951 </p> 954 952 <?php } ?>