Changeset 3018 for branches/1.2/bp-blogs.php
- Timestamp:
- 05/23/2010 07:50:27 PM (16 years ago)
- File:
-
- 1 edited
-
branches/1.2/bp-blogs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-blogs.php
r3013 r3018 43 43 44 44 // On first installation - record all existing blogs in the system. 45 if ( !(int) $bp->site_options['bp-blogs-first-install']&& bp_core_is_multisite() ) {45 if ( !(int)get_site_option('bp-blogs-first-install') && bp_core_is_multisite() ) { 46 46 bp_blogs_record_existing_blogs(); 47 47 add_site_option( 'bp-blogs-first-install', 1 ); … … 296 296 297 297 function bp_blogs_record_existing_blogs() { 298 global $bp, $wpdb , $current_site;298 global $bp, $wpdb; 299 299 300 300 /* Truncate user blogs table and re-record. */ 301 301 $wpdb->query( "TRUNCATE TABLE {$bp->blogs->table_name}" ); 302 302 303 $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" ), $current_site->id);303 $blog_ids = $wpdb->get_col( $wpdb->prepare( "SELECT blog_id FROM {$wpdb->base_prefix}blogs WHERE mature = 0 AND spam = 0 AND deleted = 0" ) ); 304 304 305 305 if ( $blog_ids ) {
Note: See TracChangeset
for help on using the changeset viewer.