WordPress.org

Make WordPress Core

Changeset 19209


Ignore:
Timestamp:
11/07/2011 11:07:07 PM (9 years ago)
Author:
duck_
Message:

is_user_member_of_blog() [no args] should return true for logged in users on single site. $wpdb->blogid is 0, but the current blog ID isn't. Fixes #19160.

File:
1 edited

Legend:

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

    r19208 r19209  
    737737        $user_id = get_current_user_id();
    738738
    739     if ( empty( $blog_id ) ) {
    740         global $wpdb;
    741         $blog_id = $wpdb->blogid;
    742     }
     739    if ( empty( $blog_id ) )
     740        $blog_id = get_current_blog_id();
    743741
    744742    $blogs = get_blogs_of_user( $user_id );
Note: See TracChangeset for help on using the changeset viewer.