Changeset 8584
- Timestamp:
- 07/10/2014 07:57:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-functions.php
r8581 r8584 75 75 $wpdb->query( "DELETE FROM {$bp->blogs->table_name} WHERE 1=1" ); 76 76 77 // Query for all sites in network 77 78 if ( is_multisite() ) { 78 $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 = %d", $wpdb->siteid ) ); 79 80 // Get blog ID's if not a large network 81 if ( ! wp_is_large_network() ) { 82 $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 = %d", $wpdb->siteid ) ); 83 84 // Large networks are not currently supported 85 } else { 86 $blog_ids = false; 87 } 88 89 // Record a single site 79 90 } else { 80 91 $blog_ids = 1;
Note: See TracChangeset
for help on using the changeset viewer.