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,6 +81,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
),
) );
if ( is_user_logged_in() ) {
// Add "About This Version" link
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',
@ -88,6 +89,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
'title' => __('About This Version'),
'href' => admin_url('about.php'),
) );
}
// Add codex link
$wp_admin_bar->add_menu( array(