WordPress.org

Make WordPress Core

Ticket #19500: 19500.2.diff

File 19500.2.diff, 475 bytes (added by johnjamesjacoby, 6 years ago)
  • wp-admin/includes/ms.php

     
    158158                }
    159159        }
    160160
     161        clean_user_cache( $id );
     162
    161163        $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->users WHERE ID = %d", $id ) );
    162164        $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->usermeta WHERE user_id = %d", $id ) );
    163165
    164         clean_user_cache( $id );
    165 
    166166        // allow for commit transaction
    167167        do_action( 'deleted_user', $id );
    168168