From 29e0f5c3b7d8bd2da19baed9be53a7b62ff126f1 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Thu, 9 Jul 2015 19:18:39 +0000 Subject: [PATCH] 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 --- src/wp-includes/admin-bar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php index 7b41c7149d..ee83c49150 100644 --- a/src/wp-includes/admin-bar.php +++ b/src/wp-includes/admin-bar.php @@ -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; }