Make WordPress Core

Changeset 38905


Ignore:
Timestamp:
10/25/2016 06:01:03 AM (8 years ago)
Author:
jeremyfelt
Message:

Multisite: Replace get_blog_details() with get_site() in is_user_member_of_blog().

Props flixos90.
Fixes #38358.

File:
1 edited

Legend:

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

    r38787 r38905  
    704704    }
    705705
    706     // Technically not needed, but does save calls to get_blog_details and get_user_meta
     706    // Technically not needed, but does save calls to get_site and get_user_meta
    707707    // in the event that the function is called when a user isn't logged in
    708708    if ( empty( $user_id ) ) {
     
    723723    }
    724724
    725     $blog = get_blog_details( $blog_id );
     725    $blog = get_site( $blog_id );
    726726
    727727    if ( ! $blog || ! isset( $blog->domain ) || $blog->archived || $blog->spam || $blog->deleted ) {
Note: See TracChangeset for help on using the changeset viewer.