Skip to:
Content

BuddyPress.org

Changeset 6286


Ignore:
Timestamp:
09/03/2012 12:36:03 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility:

  • Remove admin-side incompatible theme notice, since theme compatibility now comes naturally.
  • See: #3741.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-functions.php

    r6259 r6286  
    236236
    237237    /**
    238      * Are you using a BP-compatible theme?
    239      */
    240 
    241     // Get current theme info
    242     $ct = wp_get_theme();
    243 
    244     // Make sure tags is an array to suppress notices
    245     if ( ! isset( $ct->tags ) )
    246         $ct->tags = array();
    247     else
    248         $ct->tags = (array) $ct->tags;
    249 
    250     // The best way to remove this notice is to add a "buddypress" tag to
    251     // 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     /**
    257238     * Check for orphaned BP components (BP component is enabled, no WP page exists)
    258239     */
    259 
    260240    $orphaned_components = array();
    261241    $wp_page_components  = array();
Note: See TracChangeset for help on using the changeset viewer.