Changeset 42964 for trunk/src/wp-login.php
- Timestamp:
- 04/06/2018 07:09:53 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r42892 r42964 428 428 429 429 // validate action so as to default to the login screen 430 if ( ! in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login', ' emailconfirm' ), true ) && false === has_filter( 'login_form_' . $action ) ) {430 if ( ! in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login', 'verifyaccount' ), true ) && false === has_filter( 'login_form_' . $action ) ) { 431 431 $action = 'login'; 432 432 } … … 859 859 break; 860 860 861 case ' emailconfirm' :861 case 'verifyaccount' : 862 862 if ( isset( $_GET['confirm_action'], $_GET['confirm_key'], $_GET['uid'] ) ) { 863 $action_name = sanitize_key( wp_unslash( $_GET['confirm_action'] ) );864 863 $key = sanitize_text_field( wp_unslash( $_GET['confirm_key'] ) ); 865 864 $uid = sanitize_text_field( wp_unslash( $_GET['uid'] ) ); 866 $result = check_confirm_account_action_key( $action_name, $key, $uid ); 865 $action_name = sanitize_key( wp_unslash( $_GET['confirm_action'] ) ); 866 $result = wp_check_account_verification_key( $key, $uid, $action_name ); 867 867 } else { 868 868 $result = new WP_Error( 'invalid_key', __( 'Invalid key' ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)