Customize: For Header Image, ensure "Previously uploaded" and "Suggested" headings are hidden when lists are empty.

Fixes regression introduced with the addition of control notifications in [37476]. The container element for notifications is injected after the `.customize-control-title` element if the `.customize-control-notifications-container` element does not already exist in the control's template. Also adds missing margin between current image and uploaded images.

Props bradyvercher.
See #34893.
Fixes #38561.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2016-11-04 23:15:33 +00:00
parent 8f9f75598b
commit 9f288ff12a
6 changed files with 6 additions and 3 deletions

View File

@ -898,6 +898,7 @@ p.customize-section-description {
margin-bottom: 8px; margin-bottom: 8px;
} }
.customize-control-header .actions,
.customize-control-header .uploaded { .customize-control-header .uploaded {
margin-bottom: 18px; margin-bottom: 18px;
} }

File diff suppressed because one or more lines are too long

View File

@ -898,6 +898,7 @@ p.customize-section-description {
margin-bottom: 8px; margin-bottom: 8px;
} }
.customize-control-header .actions,
.customize-control-header .uploaded { .customize-control-header .uploaded {
margin-bottom: 18px; margin-bottom: 18px;
} }

File diff suppressed because one or more lines are too long

View File

@ -169,6 +169,7 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
<?php if ( current_theme_supports( 'custom-header', 'video' ) ) { <?php if ( current_theme_supports( 'custom-header', 'video' ) ) {
echo '<span class="customize-control-title">' . $this->label . '</span>'; echo '<span class="customize-control-title">' . $this->label . '</span>';
} ?> } ?>
<div class="customize-control-notifications-container"></div>
<p class="customizer-section-intro customize-control-description"> <p class="customizer-section-intro customize-control-description">
<?php <?php
if ( current_theme_supports( 'custom-header', 'video' ) ) { if ( current_theme_supports( 'custom-header', 'video' ) ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.7-beta2-39144'; $wp_version = '4.7-beta2-39145';
/** /**
* 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.