Don't show this menu for users who are not logged in.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2011-09-16 10:46:12 +00:00
parent 5a7a91af5f
commit a10f6eba7f
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 * @since 3.3.0
*/ */
function wp_admin_bar_blog_front_menu( $wp_admin_bar ) { function wp_admin_bar_blog_front_menu( $wp_admin_bar ) {
if ( ! is_user_logged_in() )
return;
$blogname = get_bloginfo('name'); $blogname = get_bloginfo('name');
if ( empty( $blogname ) ) if ( empty( $blogname ) )