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
This commit is contained in:
Peter Westwood 2011-09-16 10:46:12 +00:00
parent 50f062f711
commit 30121b77d9
1 changed files with 3 additions and 0 deletions

View File

@ -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 ) )