Changeset 6286
- Timestamp:
- 09/03/2012 12:36:03 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/admin/bp-core-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-functions.php
r6259 r6286 236 236 237 237 /** 238 * Are you using a BP-compatible theme?239 */240 241 // Get current theme info242 $ct = wp_get_theme();243 244 // Make sure tags is an array to suppress notices245 if ( ! isset( $ct->tags ) )246 $ct->tags = array();247 else248 $ct->tags = (array) $ct->tags;249 250 // The best way to remove this notice is to add a "buddypress" tag to251 // your active theme's CSS header.252 if ( !defined( 'BP_SILENCE_THEME_NOTICE' ) && !in_array( 'buddypress', $ct->tags ) ) {253 bp_core_add_admin_notice( sprintf( __( "You'll need to <a href='%s'>activate a <strong>BuddyPress-compatible theme</strong></a> to take advantage of all of BuddyPress's features. We've bundled a default theme, but you can always <a href='%s'>install some other compatible themes</a> or <a href='%s'>update your existing WordPress theme</a>.", 'buddypress' ), admin_url( 'themes.php' ), network_admin_url( 'theme-install.php?type=tag&s=buddypress&tab=search' ), network_admin_url( 'plugin-install.php?type=term&tab=search&s=%22bp-template-pack%22' ) ) );254 }255 256 /**257 238 * Check for orphaned BP components (BP component is enabled, no WP page exists) 258 239 */ 259 260 240 $orphaned_components = array(); 261 241 $wp_page_components = array();
Note: See TracChangeset
for help on using the changeset viewer.