Skip to:
Content

BuddyPress.org

Changeset 5958


Ignore:
Timestamp:
04/04/2012 12:43:25 PM (12 years ago)
Author:
boonebgorges
Message:

Be more selective about when WP's Edit Page/Post toolbar menu is removed.
Fixes #3294. Props needle

Location:
branches/1.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-core/bp-core-adminbar.php

    r5678 r5958  
    5959
    6060        remove_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 70 );
     61    } else {
     62        if ( !bp_is_blog_page() ) {
     63            remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu',  80  );
     64        }
    6165    }
    6266}
  • branches/1.5/bp-groups/bp-groups-adminbar.php

    r5678 r5958  
    2424        case 3.3 :
    2525        case 3.4 :
    26         default  :
    27             remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu',  80  );
     26        default  : 
    2827            add_action( 'admin_bar_menu', 'bp_groups_group_admin_menu', 400 );
    2928            break;     
Note: See TracChangeset for help on using the changeset viewer.