Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/08/2011 12:11:29 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Attach component creation to 'bp_setup_component' action. Clean up bp-core-hooks.php and include new 'bp_setup_component' hook. Fixes issue with $bp reference in global scope in each component. See #3738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-settings/bp-settings-loader.php

    r5282 r5300  
    182182    }
    183183}
    184 // Create the settingss component
    185 $bp->settings = new BP_Settings_Component();
     184
     185function bp_setup_settings() {
     186    global $bp;
     187    $bp->settings = new BP_Settings_Component();
     188}
     189add_action( 'bp_setup_components', 'bp_setup_settings', 6 );
    186190
    187191?>
Note: See TracChangeset for help on using the changeset viewer.