From a2637cf34d6b25a4154506d94f0da1ebe2ac46be Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 21 Jan 2016 22:00:42 +0000 Subject: [PATCH] Customizer: Hide help toggle button in panel when no description is supplied. This aligns with the `.customize-panel-description` element which is also excluded if there is no description. Props drebbits.web. Fixes #35540. git-svn-id: https://develop.svn.wordpress.org/trunk@36374 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-panel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-panel.php b/src/wp-includes/class-wp-customize-panel.php index a3f02b2f67..52277de66d 100644 --- a/src/wp-includes/class-wp-customize-panel.php +++ b/src/wp-includes/class-wp-customize-panel.php @@ -372,7 +372,9 @@ class WP_Customize_Panel { /* translators: %s is the site/panel title in the Customizer */ echo sprintf( __( 'You are customizing %s' ), '{{ data.title }}' ); ?> - + <# if ( data.description ) { #> + + <# } #> <# if ( data.description ) { #>