Don't show the Freedoms or Credits menu items to logged out users.

git-svn-id: https://develop.svn.wordpress.org/trunk@19042 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2011-10-22 10:56:04 +00:00
parent f3e64d5112
commit eb1b0763e1

View File

@ -89,24 +89,24 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
'title' => __('About This Version'),
'href' => admin_url('about.php'),
) );
// Add freedoms link
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',
'id' => 'freedoms',
'title' => __('Freedoms'),
'href' => admin_url('freedoms.php'),
) );
// Add credits link
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',
'id' => 'credits',
'title' => __('Credits'),
'href' => admin_url('credits.php'),
) );
}
// Add freedoms link
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',
'id' => 'freedoms',
'title' => __('Freedoms'),
'href' => admin_url('freedoms.php'),
) );
// Add credits link
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',
'id' => 'credits',
'title' => __('Credits'),
'href' => admin_url('credits.php'),
) );
// Add secondary menu.
$wp_admin_bar->add_menu( array(
'parent' => 'wp-logo',