When deleting a user, corresponding comment user IDs aren't reset
|Reported by:||nacin||Owned by:|
Delete a user with a comment.
The user ID stays.
Potential for clashes later.
We should run this: $wpdb->update( $wpdb->comments, array( 'user_id' => 0 ), array( 'user_id' => $user_id ) ); in wp_delete_user.
Alternative is to do a full query then manually run wp_insert_comment() on each, so all hooks get fired, which is fine too and is more in line with what we do elsewhere.
Change History (12)
- Priority changed from normal to lowest
- Severity changed from normal to minor