| | 758 | case 'check-email' : |
| | 759 | |
| | 760 | $secure_cookie = ''; |
| | 761 | |
| | 762 | $redirect_to = admin_url(); |
| | 763 | |
| | 764 | $reauth = empty($_REQUEST['reauth']) ? false : true; |
| | 765 | |
| | 766 | $user = wp_signon( array(), $secure_cookie ); |
| | 767 | $errors = $user; |
| | 768 | // Clear errors if loggedout is set. |
| | 769 | if ( !empty($_GET['loggedout']) || $reauth ) |
| | 770 | $errors = new WP_Error(); |
| | 771 | |
| | 772 | if ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] ) |
| | 773 | $errors->add('confirm', __('Check your email for the confirmation link.'), 'message'); |
| | 774 | |
| | 775 | /** |
| | 776 | * Filters the login page errors. |
| | 777 | * |
| | 778 | * @since 3.6.0 |
| | 779 | * |
| | 780 | * @param object $errors WP Error object. |
| | 781 | * @param string $redirect_to Redirect destination URL. |
| | 782 | */ |
| | 783 | $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to ); |
| | 784 | login_header(__('Log In'), '', $errors); |
| | 785 | |
| | 786 | login_footer(); |
| | 787 | break; |
| | 788 | |