Ticket #3294: bp-groups-adminbar.patch
File bp-groups-adminbar.patch, 603 bytes (added by , 13 years ago) |
---|
-
.php
old new 24 24 case 3.3 : 25 25 case 3.4 : 26 26 default : 27 remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 );28 27 add_action( 'admin_bar_menu', 'bp_groups_group_admin_menu', 400 ); 28 29 // Only remove edit if viewing a group and user has correct role 30 if ( !bp_is_blog_page() OR ( bp_is_group() AND ( is_super_admin() OR bp_group_is_admin() ) ) ) 31 remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 ); 32 29 33 break; 30 34 } 31 35 }