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. git-svn-id: https://develop.svn.wordpress.org/trunk@39145 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d616ad29a5
commit
5d832bc2ae
|
@ -898,6 +898,7 @@ p.customize-section-description {
|
|||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.customize-control-header .actions,
|
||||
.customize-control-header .uploaded {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
|
|
@ -169,6 +169,7 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
|||
<?php if ( current_theme_supports( 'custom-header', 'video' ) ) {
|
||||
echo '<span class="customize-control-title">' . $this->label . '</span>';
|
||||
} ?>
|
||||
<div class="customize-control-notifications-container"></div>
|
||||
<p class="customizer-section-intro customize-control-description">
|
||||
<?php
|
||||
if ( current_theme_supports( 'custom-header', 'video' ) ) {
|
||||
|
|
Loading…
Reference in New Issue