Changeset 37111 for branches/3.7/src/wp-admin/user-edit.php
- Timestamp:
- 03/30/2016 02:49:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-admin/user-edit.php
r25616 r37111 82 82 if ( is_multisite() && IS_PROFILE_PAGE && isset( $_GET[ 'newuseremail' ] ) && $current_user->ID ) { 83 83 $new_email = get_option( $current_user->ID . '_new_email' ); 84 if ( $new_email [ 'hash' ] == $_GET[ 'newuseremail' ]) {84 if ( $new_email && hash_equals( $new_email[ 'hash' ], $_GET[ 'newuseremail' ] ) ) { 85 85 $user = new stdClass; 86 86 $user->ID = $current_user->ID; … … 93 93 die(); 94 94 } 95 } elseif ( is_multisite() && IS_PROFILE_PAGE && !empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' == $_GET['dismiss'] ) { 95 } elseif ( is_multisite() && IS_PROFILE_PAGE && !empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' === $_GET['dismiss'] ) { 96 check_admin_referer( 'dismiss-' . $current_user->ID . '_new_email' ); 96 97 delete_option( $current_user->ID . '_new_email' ); 97 98 wp_redirect( add_query_arg( array('updated' => 'true'), self_admin_url( 'profile.php' ) ) ); … … 339 340 if ( $new_email && $new_email['newemail'] != $current_user->user_email && $profileuser->ID == $current_user->ID ) : ?> 340 341 <div class="updated inline"> 341 <p><?php printf( __('There is a pending change of your e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), $new_email['newemail'], esc_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ) ); ?></p>342 <p><?php printf( __('There is a pending change of your e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html( $new_email['newemail'] ), esc_url( wp_nonce_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ), 'dismiss-' . $current_user->ID . '_new_email' ) ) ); ?></p> 342 343 </div> 343 344 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.