#38561 closed defect (bug) (fixed)
Custom header sections show in the Customizer without any choices
Reported by: | bradyvercher | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
Description
The "Previously uploaded" and "Suggested" titles in the "Header Images" section are always showing in the Customizer, even when they don't have any options available. They were hidden when empty in previous versions.
The attached screenshot when using Twenty Fifteen should help clarify.
Attachments (3)
Change History (11)
#2
@
8 years ago
@bradyvercher The injection of the notifications container is done as a fallback in case the control didn't include the container itself. So you can add the notifications container to the control's content template to specifically control where it appears.
#3
@
8 years ago
- Keywords has-patch added
Thanks @westonruter! 38561.1.diff adds the notification container to the header control instead. On closer inspection, that prevents it from being duplicated and injected in the wrong place as well.
Note: See
TracTickets for help on using
tickets.
It looks like this broke in [37476] when the DOM was changed to insert a notification container after the title. 38561.diff wraps the sections in a container to fix the previous behavior and adds some much needed spacing between the sections.