Only show 'About this version' menu item to logged in users.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2011-09-26 08:40:31 +00:00
parent 590868d915
commit 59cb3c0ddd
1 changed files with 10 additions and 8 deletions

View File

@ -81,13 +81,15 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
),
) );
// Add "About This Version" link
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',
'id' => 'about',
'title' => __('About This Version'),
'href' => admin_url('about.php'),
) );
if ( is_user_logged_in() ) {
// Add "About This Version" link
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',
'id' => 'about',
'title' => __('About This Version'),
'href' => admin_url('about.php'),
) );
}
// Add codex link
$wp_admin_bar->add_menu( array(