Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/27/2013 01:23:00 PM (12 years ago)
Author:
djpaul
Message:

Fix inaccurate active component count on BP settings screen for new installs. Fixes #4896

The members component is a mandatory component, which we always activate. The active component count only counts active components.
On new installs, the members component was not being set active, leading to the discrepancy. Saving the settings screen (without making any changes) also "fixed" the count as the save routine re-calculates the active components array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-update.php

    r6870 r6873  
    175175    $raw_db_version = (int) bp_get_db_version_raw();
    176176
    177     $default_components = apply_filters( 'bp_new_install_default_components', array( 'activity' => 1, 'xprofile' => 1, ) );
     177    $default_components = apply_filters( 'bp_new_install_default_components', array( 'activity' => 1, 'members' => 1, 'xprofile' => 1, ) );
    178178    require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-schema.php' );
    179179
Note: See TracChangeset for help on using the changeset viewer.