Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2012 08:50:07 PM (14 years ago)
Author:
boonebgorges
Message:

Don't show the component page nag when group forums aren't set up correctly

See #4292

File:
1 edited

Legend:

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

    r6108 r6137  
    289289                        $orphaned_components[] = $component['name'];
    290290                }
     291        }
     292
     293        // Special case: If the Forums component is orphaned, but the bbPress 1.x installation is
     294        // not correctly set up, don't show a nag. (In these cases, it's probably the case that the
     295        // user is using bbPress 2.x; see https://buddypress.trac.wordpress.org/ticket/4292
     296        if ( isset( $bp->forums->name ) && in_array( $bp->forums->name, $orphaned_components ) && !bp_forums_is_installed_correctly() ) {
     297                $forum_key = array_search( $bp->forums->name, $orphaned_components );
     298                unset( $orphaned_components[$forum_key] );
     299                $orphaned_components = array_values( $orphaned_components );
    291300        }
    292301
Note: See TracChangeset for help on using the changeset viewer.