Toolbar: Don't show the customize link in the admin.

props afragen.
fixes #32945.

Built from https://develop.svn.wordpress.org/trunk@33147


git-svn-id: http://core.svn.wordpress.org/trunk@33119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-07-09 19:19:24 +00:00
parent 70a8c3e83d
commit 3e292a2426
2 changed files with 3 additions and 3 deletions

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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta2-33146';
$wp_version = '4.3-beta2-33147';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.