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:
Helen Hou-Sandi
2015-07-09 19:18:39 +00:00
parent 17a5f9f494
commit 29e0f5c3b7

View File

@@ -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;
}