Skip to:
Content

BuddyPress.org

Changeset 5213


Ignore:
Timestamp:
10/06/2011 03:08:24 PM (10 years ago)
Author:
boonebgorges
Message:

Rehooks main WP admin bar items to core admin_bar_menu hook, so that we have greater control over the way our menus are ordered with respect to WP core menus. See #3596

Location:
trunk
Files:
3 edited

Legend:

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

    r5212 r5213  
    108108    }
    109109}
    110 add_action( 'bp_setup_admin_bar', 'bp_admin_bar_root_site', 3 );
     110add_action( 'admin_bar_menu', 'bp_admin_bar_root_site', 15 );
    111111
    112112/**
     
    142142    }
    143143}
    144 add_action( 'bp_setup_admin_bar', 'bp_admin_bar_my_sites_menu', 3 );
     144add_action( 'admin_bar_menu', 'bp_admin_bar_my_sites_menu', 17 );
    145145
    146146/**
  • trunk/bp-groups/bp-groups-adminbar.php

    r5052 r5213  
    113113    ) );
    114114}
    115 add_action( 'bp_setup_admin_bar', 'bp_groups_group_admin_menu', 99 );
     115add_action( 'admin_bar_menu', 'bp_groups_group_admin_menu', 99 );
    116116
    117117?>
  • trunk/bp-members/bp-members-adminbar.php

    r5211 r5213  
    168168    ) );
    169169}
    170 add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_user_admin_menu', 99 );
     170add_action( 'admin_bar_menu', 'bp_members_admin_bar_user_admin_menu', 99 );
    171171
    172172/**
     
    215215    return;
    216216}
    217 add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_notifications_menu', 999 );
     217add_action( 'admin_bar_menu', 'bp_members_admin_bar_notifications_menu', 90 );
    218218
    219219/**
     
    241241    }
    242242}
    243 add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_my_account_logout', 9999 );
     243add_action( 'admin_bar_menu', 'bp_members_admin_bar_my_account_logout', 9999 );
    244244
    245245?>
Note: See TracChangeset for help on using the changeset viewer.