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:
parent
70a8c3e83d
commit
3e292a2426
|
@ -326,8 +326,8 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
|
||||||
* @param WP_Admin_Bar $wp_admin_bar
|
* @param WP_Admin_Bar $wp_admin_bar
|
||||||
*/
|
*/
|
||||||
function wp_admin_bar_customize_menu( $wp_admin_bar ) {
|
function wp_admin_bar_customize_menu( $wp_admin_bar ) {
|
||||||
// Don't show for users who can't access the customizer.
|
// Don't show for users who can't access the customizer or when in the admin.
|
||||||
if ( ! current_user_can( 'customize' ) ) {
|
if ( ! current_user_can( 'customize' ) || is_admin() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue