Changeset 37103 for trunk/src/wp-admin/user-edit.php
- Timestamp:
- 03/30/2016 02:44:00 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/user-edit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-edit.php
r36695 r37103 84 84 if ( is_multisite() && IS_PROFILE_PAGE && isset( $_GET[ 'newuseremail' ] ) && $current_user->ID ) { 85 85 $new_email = get_user_meta( $current_user->ID, '_new_email', true ); 86 if ( $new_email && $new_email[ 'hash' ] == $_GET[ 'newuseremail' ]) {86 if ( $new_email && hash_equals( $new_email[ 'hash' ], $_GET[ 'newuseremail' ] ) ) { 87 87 $user = new stdClass; 88 88 $user->ID = $current_user->ID; … … 98 98 wp_redirect( add_query_arg( array( 'error' => 'new-email' ), self_admin_url( 'profile.php' ) ) ); 99 99 } 100 } elseif ( is_multisite() && IS_PROFILE_PAGE && !empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' == $_GET['dismiss'] ) { 100 } elseif ( is_multisite() && IS_PROFILE_PAGE && !empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' === $_GET['dismiss'] ) { 101 check_admin_referer( 'dismiss-' . $current_user->ID . '_new_email' ); 101 102 delete_user_meta( $current_user->ID, '_new_email' ); 102 103 wp_redirect( add_query_arg( array('updated' => 'true'), self_admin_url( 'profile.php' ) ) ); … … 401 402 /* translators: %s: new email */ 402 403 __( 'There is a pending change of your email to %s.' ), 403 '<code>' . $new_email['newemail']. '</code>'404 '<code>' . esc_html( $new_email['newemail'] ) . '</code>' 404 405 ); 405 406 printf( 406 407 ' <a href="%1$s">%2$s</a>', 407 esc_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ),408 esc_url( wp_nonce_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ), 'dismiss-' . $current_user->ID . '_new_email' ) ), 408 409 __( 'Cancel' ) 409 410 );
Note: See TracChangeset
for help on using the changeset viewer.