Changeset 3623 for branches/plugin/bbp-admin/bbp-admin.php
- Timestamp:
- 11/20/2011 12:57:43 AM (14 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-admin/bbp-admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-admin.php
r3586 r3623 389 389 * 390 390 * @uses current_user_can() To check notice should be displayed. 391 * @uses current_theme_supports() To check theme for bbPress support392 391 */ 393 392 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 412 394 } 413 395
Note: See TracChangeset
for help on using the changeset viewer.