mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
Don't show the Freedoms or Credits menu items to logged out users.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19042 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2b4b7aa211
commit
53d8de7408
@ -89,24 +89,24 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
|
|||||||
'title' => __('About This Version'),
|
'title' => __('About This Version'),
|
||||||
'href' => admin_url('about.php'),
|
'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.
|
// Add secondary menu.
|
||||||
$wp_admin_bar->add_menu( array(
|
$wp_admin_bar->add_menu( array(
|
||||||
'parent' => 'wp-logo',
|
'parent' => 'wp-logo',
|
||||||
|
Loading…
Reference in New Issue
Block a user