Make WordPress Core

Changeset 39145


Ignore:
Timestamp:
11/04/2016 11:14:47 PM (10 years ago)
Author:
westonruter
Message:

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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r39140 r39145  
    899899}
    900900
     901.customize-control-header .actions,
    901902.customize-control-header .uploaded {
    902903        margin-bottom: 18px;
  • trunk/src/wp-includes/customize/class-wp-customize-header-image-control.php

    r38985 r39145  
    170170                                echo '<span class="customize-control-title">' . $this->label . '</span>';
    171171                        } ?>
     172                        <div class="customize-control-notifications-container"></div>
    172173                        <p class="customizer-section-intro customize-control-description">
    173174                                <?php
Note: See TracChangeset for help on using the changeset viewer.