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:
parent
590868d915
commit
59cb3c0ddd
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue