Make WordPress Core

Ticket #38358: 38358.diff

File 38358.diff, 792 bytes (added by flixos90, 8 years ago)
  • src/wp-includes/user.php

     
    703703                $user_id = get_current_user_id();
    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 ) ) {
    709709                return false;
     
    722722                $blog_id = get_current_blog_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 ) {
    728728                return false;