Changeset 11763 for trunk/src/bp-core/admin/bp-core-admin-functions.php
- Timestamp:
- 12/08/2017 12:22:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r11513 r11763 287 287 $orphaned_components[] = $component['name']; 288 288 } 289 }290 291 // Special case: If the Forums component is orphaned, but the bbPress 1.x installation is292 // not correctly set up, don't show a nag. (In these cases, it's probably the case that the293 // user is using bbPress 2.x; see https://buddypress.trac.wordpress.org/ticket/4292.294 if ( isset( $bp->forums->name ) && in_array( $bp->forums->name, $orphaned_components ) && !bp_forums_is_installed_correctly() ) {295 $forum_key = array_search( $bp->forums->name, $orphaned_components );296 unset( $orphaned_components[$forum_key] );297 $orphaned_components = array_values( $orphaned_components );298 289 } 299 290 … … 440 431 ), 441 432 ); 442 443 // If forums component is active, add additional tab.444 if ( bp_is_active( 'forums' ) && class_exists( 'BP_Forums_Component' ) ) {445 446 // Enqueue thickbox.447 wp_enqueue_script( 'thickbox' );448 wp_enqueue_style( 'thickbox' );449 450 $tabs['3'] = array(451 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bb-forums-setup' ), 'admin.php' ) ),452 'name' => __( 'Forums', 'buddypress' )453 );454 }455 433 456 434 /**
Note: See TracChangeset
for help on using the changeset viewer.