Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/22/2013 07:31:29 PM (12 years ago)
Author:
r-a-y
Message:

Add a fourth parameter to the BP_Component::start() method.

This parameter is an array that allows extended classes to define some
properties that need to be set early one for BP_Component to be able
to work its magic.

Currently accepts 'adminbar_myaccount_order', which sets a custom
position for the component menu generated under the WP Toolbar's
"My Account" menu. If this value isn't set, we set the value to 90,
which will generate the menu before the Settings menu is added.

Fixes #3769.

File:
1 edited

Legend:

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

    r7442 r7454  
    8282            'groups',
    8383            __( 'User Groups', 'buddypress' ),
    84             BP_PLUGIN_DIR
     84            BP_PLUGIN_DIR,
     85            array(
     86                'adminbar_myaccount_order' => 70
     87            )
    8588        );
    8689    }
Note: See TracChangeset for help on using the changeset viewer.