This works for me…I’m not sure if you can somehow combine the two items and only call $admin_bar->add_menu( $args); once.
add_action('admin_bar_menu', 'add_items', 100);
function add_items($admin_bar)
{
$args = array(
'id' => 'plugins',
'title' => 'Plugins',
'href' => 'plugins.php',
'meta' => array(
'title' => __('Plugins'),
),
);
$admin_bar->add_menu( $args);
$args = array(
'id' => 'add-plugin',
'title' => 'Add New',
'href' => 'plugin-install.php',
'meta' => array(
'title' => __('Add New Plugin'),
),
'parent' => 'plugins',
);
$admin_bar->add_menu( $args);
}
EDIT: This should go into your theme’s functions.php file.
Thank you very very much.
In case anyone stumbles on this topic, this also came out recently: http://ww.wp.xz.cn/extend/plugins/multisite-admin-bar-tweaks/
Both variants work flawlessly.