Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/20/2011 12:57:43 AM (14 years ago)
Author:
johnjamesjacoby
Message:

First pass at v2 theme compatibility:

  • Remove references to current_theme_supports()
  • Introduce bbp_locate_template() to include theme compat path
  • Use bbp_locate_template() through-out project
  • See #1691
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-admin.php

    r3586 r3623  
    389389     *
    390390     * @uses current_user_can() To check notice should be displayed.
    391      * @uses current_theme_supports() To check theme for bbPress support
    392391     */
    393392    public function activation_notice() {
    394         global $bbp, $pagenow;
    395 
    396         // Bail if not on admin theme page
    397         if ( 'themes.php' != $pagenow )
    398             return;
    399 
    400         // Bail if user cannot change the theme
    401         if ( !current_user_can( 'switch_themes' ) )
    402             return;
    403 
    404         // Set $bbp->theme_compat to true to bypass nag
    405         if ( !empty( $bbp->theme_compat->theme ) && !current_theme_supports( 'bbpress' ) ) : ?>
    406 
    407             <div id="message" class="updated fade">
    408                 <p style="line-height: 150%"><?php printf( __( "Your active theme does not include bbPress template files. Your forums are using the default styling included with bbPress.", 'bbpress' ), admin_url( 'themes.php' ), admin_url( 'theme-install.php?type=tag&s=bbpress&tab=search' ) ) ?></p>
    409             </div>
    410 
    411         <?php endif;
     393        // @todo - something fun
    412394    }
    413395
Note: See TracChangeset for help on using the changeset viewer.