Changeset 8946 for trunk/src/bp-core/admin/bp-core-functions.php
- Timestamp:
- 08/20/2014 02:40:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-functions.php
r8664 r8946 201 201 */ 202 202 function bp_core_activation_notice() { 203 global $wp_rewrite ;203 global $wp_rewrite, $wpdb; 204 204 205 205 // Only the super admin gets warnings … … 221 221 if ( is_network_admin() && ! bp_is_network_activated() ) { 222 222 return; 223 } 224 225 /** 226 * Check to make sure that the blog setup routine has run. This can't 227 * happen during the wizard because of the order which the components 228 * are loaded. 229 */ 230 if ( bp_is_active( 'blogs' ) ) { 231 $bp = buddypress(); 232 $count = $wpdb->get_var( "SELECT COUNT(*) FROM {$bp->blogs->table_name}" ); 233 234 if ( empty( $count ) ) { 235 bp_blogs_record_existing_blogs(); 236 } 223 237 } 224 238
Note: See TracChangeset
for help on using the changeset viewer.