Update bonanza

This commit is contained in:
nikolark committed 2014-11-20 21:01:19 +01:00
1 parent cb55845271
commit b6ff45d1b4
146 files changed
+15771 -14876

No files matched your search

+3
View File
@@ -1818,6 +1818,9 @@ function wp_insert_user( $userdata ) {
$data = wp_unslash( $compacted );
if ( $update ) {
if ( $user_email !== $old_user_data->user_email ) {
$data['user_activation_key'] = '';
}
$wpdb->update( $wpdb->users, $data, compact( 'ID' ) );
$user_id = (int) $ID;
} else {