mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Toolbar: Add a Plugins link to the admin bar menu.
Props colomet, Girishpanchal, afercia, danieltj, rishishah, sabernhardt, joedolson, huzaifaalmesbah, shailu25, zunaid321, devmuhib, sumitbagthariya16, yuvrajsinh2211, SergeyBiryukov. Fixes #40683. Built from https://develop.svn.wordpress.org/trunk@57188 git-svn-id: http://core.svn.wordpress.org/trunk@56699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
497844c45b
commit
8ed54ba817
@ -436,6 +436,18 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
|
|||||||
|
|
||||||
// Add the appearance submenu items.
|
// Add the appearance submenu items.
|
||||||
wp_admin_bar_appearance_menu( $wp_admin_bar );
|
wp_admin_bar_appearance_menu( $wp_admin_bar );
|
||||||
|
|
||||||
|
// Add a Plugins link.
|
||||||
|
if ( current_user_can( 'activate_plugins' ) ) {
|
||||||
|
$wp_admin_bar->add_node(
|
||||||
|
array(
|
||||||
|
'parent' => 'site-name',
|
||||||
|
'id' => 'plugins',
|
||||||
|
'title' => __( 'Plugins' ),
|
||||||
|
'href' => admin_url( 'plugins.php' ),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.5-alpha-57187';
|
$wp_version = '6.5-alpha-57188';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user