mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Toolbar: Don't show the customize link in the admin.
props afragen. fixes #32945. git-svn-id: https://develop.svn.wordpress.org/trunk@33147 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -326,8 +326,8 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
|
||||
* @param WP_Admin_Bar $wp_admin_bar
|
||||
*/
|
||||
function wp_admin_bar_customize_menu( $wp_admin_bar ) {
|
||||
// Don't show for users who can't access the customizer.
|
||||
if ( ! current_user_can( 'customize' ) ) {
|
||||
// Don't show for users who can't access the customizer or when in the admin.
|
||||
if ( ! current_user_can( 'customize' ) || is_admin() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user