diff --git a/src/wp-login.php b/src/wp-login.php
index ce9cf2e857..9a1db97020 100644
a
|
b
|
if ( ! in_array( $action, $default_actions, true ) && false === has_filter( 'log |
511 | 511 | $action = 'login'; |
512 | 512 | } |
513 | 513 | |
| 514 | if ( isset( $_GET['checkemail'] ) && $_GET['checkemail'] ) { |
| 515 | $action = 'check-email'; |
| 516 | } |
| 517 | |
514 | 518 | nocache_headers(); |
515 | 519 | |
516 | 520 | header( 'Content-Type: ' . get_bloginfo( 'html_type' ) . '; charset=' . get_bloginfo( 'charset' ) ); |
… |
… |
switch ( $action ) { |
1168 | 1172 | login_footer(); |
1169 | 1173 | exit; |
1170 | 1174 | |
| 1175 | case 'check-email': |
| 1176 | $secure_cookie = ''; |
| 1177 | $redirect_to = admin_url(); |
| 1178 | |
| 1179 | $errors = new WP_Error(); |
| 1180 | |
| 1181 | if ( isset( $_GET['checkemail'] ) && 'confirm' === $_GET['checkemail'] ) { |
| 1182 | $errors->add( |
| 1183 | 'confirm', |
| 1184 | sprintf( |
| 1185 | /* Translators: 1 is a link to the login url. */ |
| 1186 | __( 'Check your email for the confirmation link. Then go to <a href="%1$s">Login Page</a>' ), |
| 1187 | wp_login_url() |
| 1188 | ), |
| 1189 | 'message' |
| 1190 | ); |
| 1191 | } |
| 1192 | |
| 1193 | /** |
| 1194 | * Filters the login page errors. |
| 1195 | * |
| 1196 | * @since 3.6.0 |
| 1197 | * |
| 1198 | * @param object $errors WP Error object. |
| 1199 | * @param string $redirect_to Redirect destination URL. |
| 1200 | */ |
| 1201 | $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to ); |
| 1202 | login_header( __( 'Log In' ), '', $errors ); |
| 1203 | |
| 1204 | login_footer(); |
| 1205 | break; |
| 1206 | |
1171 | 1207 | case 'login': |
1172 | 1208 | default: |
1173 | 1209 | $secure_cookie = ''; |