Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/19/2011 10:10:03 AM (10 years ago)
Author:
djpaul
Message:

For better compatibility with other plugins, don't remove all of the adminbar menus if BP_USE_WP_ADMIN_BAR set.

File:
1 edited

Legend:

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

    r4151 r4531  
    2424function bp_admin_bar_remove_wp_menus() {
    2525    remove_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 );
    26     remove_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu',   20 );
     26
     27    /*remove_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu',   20 );
    2728    remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu',       30 );
    2829    remove_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu',  80 );
     
    3435    }
    3536
    36     remove_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu',    70 );
     37    remove_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu',    70 );*/
    3738}
    3839if ( defined( 'BP_USE_WP_ADMIN_BAR' ) )
Note: See TracChangeset for help on using the changeset viewer.