WordPress.org

Make WordPress Core

Ticket #47021: 47021.diff

File 47021.diff, 1.6 KB (added by spacedmonkey, 6 months ago)
  • src/wp-includes/ms-functions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    206206         * @param int    $blog_id Blog ID.
    207207         */
    208208        do_action( 'add_user_to_blog', $user_id, $role, $blog_id );
    209         wp_cache_delete( $user_id, 'users' );
     209        clean_user_cache( $user_id );
    210210        wp_cache_delete( $blog_id . '_user_count', 'blog-details' );
    211211        restore_current_blog();
    212212        return true;
  • src/wp-includes/pluggable.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    25042504                        array( 'ID' => $user_id )
    25052505                );
    25062506
    2507                 wp_cache_delete( $user_id, 'users' );
     2507                clean_user_cache( $user_id );
    25082508        }
    25092509endif;
    25102510
  • src/wp-includes/user.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    18301830        } elseif ( ! $update ) {
    18311831                $user->set_role( get_option( 'default_role' ) );
    18321832        }
    1833         wp_cache_delete( $user_id, 'users' );
    1834         wp_cache_delete( $user_login, 'userlogins' );
     1833
     1834        clean_user_cache( $user_id );
    18351835
    18361836        if ( $update ) {
    18371837                /**