Skip to:
Content

BuddyPress.org

Changeset 4564


Ignore:
Timestamp:
06/25/2011 12:30:09 PM (13 years ago)
Author:
boonebgorges
Message:

Don't show 'Edit Page' in WP Admin Bar on BP pages. References #3294

File:
1 edited

Legend:

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

    r4531 r4564  
    2424function bp_admin_bar_remove_wp_menus() {
    2525    remove_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 10 );
     26   
     27    // Don't show the 'Edit Page' menu on BP pages
     28    if ( !bp_is_blog_page() )
     29        remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 30 );
    2630
    2731    /*remove_action( 'admin_bar_menu', 'wp_admin_bar_my_sites_menu',   20 );
     
    4044    add_action( 'bp_init', 'bp_admin_bar_remove_wp_menus', 2 );
    4145
     46
     47
    4248?>
Note: See TracChangeset for help on using the changeset viewer.