Make WordPress Core


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

Invalidate password keys when a user's email changes.

Merges [30430] to the 3.8 branch.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

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

    r26493 r30433  
    14101410
    14111411    if ( $update ) {
     1412        if ( $user_email !== $old_user_data->user_email ) {
     1413            $data['user_activation_key'] = '';
     1414        }
    14121415        $wpdb->update( $wpdb->users, $data, compact( 'ID' ) );
    14131416        $user_id = (int) $ID;
Note: See TracChangeset for help on using the changeset viewer.