From 30121b77d9dbf1a8fb48fccc87eb26205f71cccb Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 16 Sep 2011 10:46:12 +0000 Subject: [PATCH] Don't show this menu for users who are not logged in. git-svn-id: https://develop.svn.wordpress.org/trunk@18686 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/admin-bar.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 7e4dc96917..b9dfa63d71 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -100,6 +100,9 @@ function wp_admin_bar_my_account_menu( $wp_admin_bar ) { * @since 3.3.0 */ function wp_admin_bar_blog_front_menu( $wp_admin_bar ) { + if ( ! is_user_logged_in() ) + return; + $blogname = get_bloginfo('name'); if ( empty( $blogname ) )