From dc343e41fae4907edfc0a3d0aefe10074a729f73 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 21 Jan 2016 22:01:26 +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. Built from https://develop.svn.wordpress.org/trunk@36374 git-svn-id: http://core.svn.wordpress.org/trunk@36341 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-panel.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-panel.php b/wp-includes/class-wp-customize-panel.php index a3f02b2f67..52277de66d 100644 --- a/wp-includes/class-wp-customize-panel.php +++ b/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 ) { #>
diff --git a/wp-includes/version.php b/wp-includes/version.php index 6807ba5f08..d609d0f9f0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36373'; +$wp_version = '4.5-alpha-36374'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.