Make WordPress Core


Ignore:
Timestamp:
08/01/2019 05:48:31 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Users: Use clean_user_cache() in wp_insert_user(), wp_update_user(), wp_set_password(), add_user_to_blog().

Props spacedmonkey.
Fixes #47021.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r45590 r45715  
    207207     */
    208208    do_action( 'add_user_to_blog', $user_id, $role, $blog_id );
    209     wp_cache_delete( $user_id, 'users' );
     209
     210    clean_user_cache( $user_id );
    210211    wp_cache_delete( $blog_id . '_user_count', 'blog-details' );
     212
    211213    restore_current_blog();
     214
    212215    return true;
    213216}
Note: See TracChangeset for help on using the changeset viewer.