Skip to:
Content

BuddyPress.org

Ticket #5873: 5873.01.patch

File 5873.01.patch, 685 bytes (added by r-a-y, 10 years ago)
  • src/bp-core/bp-core-functions.php

     
    345345 * @return array
    346346 */
    347347function bp_core_get_packaged_component_ids() {
    348         return array(
     348        $components = array(
    349349                'activity',
    350350                'members',
    351351                'groups',
     
    355355                'messages',
    356356                'settings',
    357357                'notifications',
    358                 'forums',
    359358        );
     359
     360        // only add legacy forums if it is enabled
     361        // prevents conflicts with bbPress, which also uses the same 'forums' id
     362        if ( class_exists( 'BP_Forums_Component' ) ) {
     363                $components[] = 'forums';
     364        }
     365
     366        return $components;
    360367}
    361368
    362369/**