WordPress.org

Make WordPress Core

Ticket #32851: 32851.patch

File 32851.patch, 556 bytes (added by egill, 6 years ago)

32851.patch

  • wp-includes/user.php

     
    20562056                }
    20572057                $wpdb->update( $wpdb->users, $data, compact( 'ID' ) );
    20582058                $user_id = (int) $ID;
     2059                $wpdb->update( $wpdb->comments, array( 'comment_author_email' => $user_email, 'comment_author_url' => $user_url ), array( 'user_id' => $user_id ) );
    20592060        } else {
    20602061                $wpdb->insert( $wpdb->users, $data + compact( 'user_login' ) );
    20612062                $user_id = (int) $wpdb->insert_id;