Skip to content
Browse files

add solution to remove menu item in Admin Bar 3 for "My Sites" in blo…

…g list of Multisite network
  • Loading branch information...
1 parent 8f04457 commit f5987edec9be040d9c7db58a882fb41be374146a @bueltge committed Dec 4, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 remove-comments-absolute.php
View
3 remove-comments-absolute.php
@@ -203,6 +203,9 @@ public function remove_comments_areas () {
* $return void
*/
public function admin_bar_render () {
+ // remove comment item in blog -list for "My Sites" in Admin Bar
+ if ( isset( $GLOBALS['blog_id'] ) )
+ $GLOBALS['wp_admin_bar'] -> remove_menu( 'blog-' . $GLOBALS['blog_id'] . '-c' );
// remove entry in admin bar
$GLOBALS['wp_admin_bar'] -> remove_menu( 'comments' );
}

0 comments on commit f5987ed

Please sign in to comment.
Something went wrong with that request. Please try again.