Skip to:
Content

BuddyPress.org

Changeset 6299


Ignore:
Timestamp:
09/03/2012 03:37:07 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Blogs:

  • Only populate blogs table with blogs from the current site_id.
  • Fixes issues with multi-network installations.
  • Props boonebgorges.
  • Fixes #4337.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-functions.php

    r6259 r6299  
    5050
    5151    if ( is_multisite() )
    52         $blog_ids = $wpdb->get_col( $wpdb->prepare( "SELECT blog_id FROM {$wpdb->base_prefix}blogs WHERE mature = 0 AND spam = 0 AND deleted = 0" ) );
     52        $blog_ids = $wpdb->get_col( $wpdb->prepare( "SELECT blog_id FROM {$wpdb->base_prefix}blogs WHERE mature = 0 AND spam = 0 AND deleted = 0 AND site_id = '{$wpdb->siteid}'" ) );
    5353    else
    5454        $blog_ids = 1;
Note: See TracChangeset for help on using the changeset viewer.