Changeset 43070 for branches/4.9/src/wp-login.php
- Timestamp:
- 05/01/2018 11:36:37 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-login.php
r43069 r43070 414 414 415 415 // validate action so as to default to the login screen 416 if ( !in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login', ' emailconfirm' ), true ) && false === has_filter( 'login_form_' . $action ) )416 if ( !in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login', 'verifyaccount' ), true ) && false === has_filter( 'login_form_' . $action ) ) 417 417 $action = 'login'; 418 418 … … 839 839 break; 840 840 841 case ' emailconfirm' :841 case 'verifyaccount' : 842 842 if ( isset( $_GET['confirm_action'], $_GET['confirm_key'], $_GET['uid'] ) ) { 843 $action_name = sanitize_key( wp_unslash( $_GET['confirm_action'] ) );844 843 $key = sanitize_text_field( wp_unslash( $_GET['confirm_key'] ) ); 845 844 $uid = sanitize_text_field( wp_unslash( $_GET['uid'] ) ); 846 $result = check_confirm_account_action_key( $action_name, $key, $uid ); 845 $action_name = sanitize_key( wp_unslash( $_GET['confirm_action'] ) ); 846 $result = wp_check_account_verification_key( $key, $uid, $action_name ); 847 847 } else { 848 848 $result = new WP_Error( 'invalid_key', __( 'Invalid key' ) );
Note: See TracChangeset
for help on using the changeset viewer.