Make WordPress Core


Ignore:
Timestamp:
11/20/2014 01:41:33 PM (12 years ago)
Author:
nacin
Message:

Invalidate password keys when a user's email changes.

Merges [30430] to the 3.9 branch.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/src/wp-includes/user.php

    r28087 r30432  
    17171717
    17181718    if ( $update ) {
     1719        if ( $user_email !== $old_user_data->user_email ) {
     1720            $data['user_activation_key'] = '';
     1721        }
    17191722        $wpdb->update( $wpdb->users, $data, compact( 'ID' ) );
    17201723        $user_id = (int) $ID;
Note: See TracChangeset for help on using the changeset viewer.