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-messages/bp-messages-loader.php

    r7430 r7454  
    3232            'messages',
    3333            __( 'Private Messages', 'buddypress' ),
    34             BP_PLUGIN_DIR
     34            BP_PLUGIN_DIR,
     35            array(
     36                'adminbar_myaccount_order' => 50
     37            )
    3538        );
    3639    }
Note: See TracChangeset for help on using the changeset viewer.