Ticket #38358: 38358.diff
File 38358.diff, 792 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/user.php
703 703 $user_id = get_current_user_id(); 704 704 } 705 705 706 // Technically not needed, but does save calls to get_ blog_detailsand get_user_meta706 // Technically not needed, but does save calls to get_site and get_user_meta 707 707 // in the event that the function is called when a user isn't logged in 708 708 if ( empty( $user_id ) ) { 709 709 return false; … … 722 722 $blog_id = get_current_blog_id(); 723 723 } 724 724 725 $blog = get_ blog_details( $blog_id );725 $blog = get_site( $blog_id ); 726 726 727 727 if ( ! $blog || ! isset( $blog->domain ) || $blog->archived || $blog->spam || $blog->deleted ) { 728 728 return false;