Make WordPress Core

Changeset 21798

Timestamp:
09/10/2012 07:56:08 PM (12 years ago)
Author:
ryan
Message:

When reassigning posts and links during user deletion, clear the post and link caches. Props kurtpayne. fixes #20447

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/user.php

    r21496 r21798  
    271271    } else {
    272272        $reassign = (int) $reassign;
     273
    273274        $wpdb->update( $wpdb->posts, array('post_author' => $reassign), array('post_author' => $id) );
     275
     276
     277
     278
     279
    274280        $wpdb->update( $wpdb->links, array('link_owner' => $reassign), array('link_owner' => $id) );
     281
     282
     283
     284
    275285    }
    276286
Note: See TracChangeset for help on using the changeset viewer.