Changeset 8592
- Timestamp:
- 07/11/2014 01:40:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-functions.php
r8431 r8592 201 201 */ 202 202 function bp_core_activation_notice() { 203 global $wpdb, $wp_rewrite; 204 205 $bp = buddypress(); 203 global $wp_rewrite; 206 204 207 205 // Only the super admin gets warnings … … 210 208 } 211 209 210 // Bail in user admin 211 if ( is_user_admin() ) { 212 return; 213 } 214 212 215 // On multisite installs, don't load on a non-root blog, unless do_network_admin is overridden 213 if ( is_multisite() && bp_core_do_network_admin() && ! bp_is_root_blog() ) {216 if ( is_multisite() && bp_core_do_network_admin() && ! bp_is_root_blog() ) { 214 217 return; 215 218 } … … 220 223 } 221 224 222 // Bail in network admin 223 if ( is_user_admin() ) { 224 return; 225 } 226 227 /** 228 * Check to make sure that the blog setup routine has run. This can't happen during the 229 * wizard because of the order which the components are loaded. We check for multisite here 230 * on the off chance that someone has activated the blogs component and then disabled MS 231 */ 232 if ( bp_is_active( 'blogs' ) ) { 233 $count = $wpdb->get_var( "SELECT COUNT(*) FROM {$bp->blogs->table_name}" ); 234 235 if ( empty( $count ) ) { 236 bp_blogs_record_existing_blogs(); 237 } 238 } 239 240 /** 241 * Are pretty permalinks enabled? 242 */ 243 if ( isset( $_POST['permalink_structure'] ) ) { 244 return; 245 } 246 225 // Add notice if no rewrite rules are enabled 247 226 if ( empty( $wp_rewrite->permalink_structure ) ) { 248 227 bp_core_add_admin_notice( sprintf( __( '<strong>BuddyPress is almost ready</strong>. You must <a href="%s">update your permalink structure</a> to something other than the default for it to work.', 'buddypress' ), admin_url( 'options-permalink.php' ) ) ); 249 228 } 229 230 // Get BuddyPress instance 231 $bp = buddypress(); 250 232 251 233 /**
Note: See TracChangeset
for help on using the changeset viewer.