mirror of
git://develop.git.wordpress.org/
synced 2025-04-05 04:33:18 +02:00
Hide Customize from admin bar when using a block theme
Don't add the Customize link to the admin bar when a block theme is activated. See #54337. git-svn-id: https://develop.svn.wordpress.org/trunk@52134 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f7d670c767
commit
37c8dfc09f
@ -431,6 +431,11 @@ function wp_admin_bar_customize_menu( $wp_admin_bar ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't show if a block theme is activated.
|
||||
if ( wp_is_block_template_theme() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||
if ( is_customize_preview() && $wp_customize->changeset_uuid() ) {
|
||||
$current_url = remove_query_arg( 'customize_changeset_uuid', $current_url );
|
||||
|
Loading…
x
Reference in New Issue
Block a user