Ticket #2951: 2951.diff
File 2951.diff, 830 bytes (added by , 14 years ago) |
---|
-
bp-loader.php
127 127 128 128 $root_blog_meta_keys = "'" . implode( "','", (array)$root_blog_options ) ."'"; 129 129 130 $root_blog_meta_table = BP_ROOT_BLOG == 1 ? $wpdb->base_prefix . 'options' : $wpdb->base_prefix . BP_ROOT_BLOG . '_options';130 $root_blog_meta_table = $wpdb->get_blog_prefix( BP_ROOT_BLOG ) . 'options'; 131 131 $root_blog_meta = $wpdb->get_results( $wpdb->prepare( "SELECT option_name AS name, option_value AS value FROM {$root_blog_meta_table} WHERE option_name IN ({$root_blog_meta_keys})" ) ); 132 132 133 133 $site_options = array(); … … 172 172 } 173 173 register_deactivation_hook( 'buddypress/bp-loader.php', 'bp_loader_deactivate' ); 174 174 175 ?> 176 No newline at end of file 175 ?>