blog_id; switch_to_blog( $current_site->blog_id ); global $current_user; $is_logged = ( $current_user->ID > 0 ); switch_to_blog( $prev_blog ); if ( $is_logged ) return array_merge( $wp_blogcaps, array_fill_keys( $orig_reqd_caps, true ) ); } } // end class ?>