mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Admin bar 'W' shakeup. About This Version is now About WordPress. Credits and Freedoms will now become tabs on the post-update screen. see #18742.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
84a23bfd81
commit
800261121a
@ -82,29 +82,13 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
|
|||||||
) );
|
) );
|
||||||
|
|
||||||
if ( is_user_logged_in() ) {
|
if ( is_user_logged_in() ) {
|
||||||
// Add "About This Version" link
|
// Add "About WordPress" link
|
||||||
$wp_admin_bar->add_menu( array(
|
$wp_admin_bar->add_menu( array(
|
||||||
'parent' => 'wp-logo',
|
'parent' => 'wp-logo',
|
||||||
'id' => 'about',
|
'id' => 'about',
|
||||||
'title' => __('About This Version'),
|
'title' => __('About WordPress'),
|
||||||
'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 secondary menu.
|
// Add secondary menu.
|
||||||
|
Loading…
Reference in New Issue
Block a user