Make WordPress Core

Ticket #38561: 38561.diff

File 38561.diff, 3.0 KB (added by bradyvercher, 8 years ago)
  • src/wp-admin/css/customize-controls.css

     
    885885        margin-bottom: 8px;
    886886}
    887887
    888 .customize-control-header .uploaded {
    889         margin-bottom: 18px;
    890 }
    891 
    892888.customize-control-header .uploaded button:not(.random),
    893889.customize-control-header .default button:not(.random) {
    894890        width: 100%;
     
    10531049        100% { color: #d4b146; }
    10541050}
    10551051
     1052.customize-control-header .choices-group {
     1053        margin-top: 18px;
     1054}
     1055
    10561056.customize-control-header .choice {
    10571057        position: relative;
    10581058        display: block;
  • src/wp-includes/customize/class-wp-customize-header-image-control.php

     
    208208                                <?php endif; ?>
    209209                        </div>
    210210                        <div class="choices">
    211                                 <span class="customize-control-title header-previously-uploaded">
    212                                         <?php _ex( 'Previously uploaded', 'custom headers' ); ?>
    213                                 </span>
    214                                 <div class="uploaded">
    215                                         <div class="list">
     211                                <div class="choices-group">
     212                                        <span class="customize-control-title header-previously-uploaded">
     213                                                <?php _ex( 'Previously uploaded', 'custom headers' ); ?>
     214                                        </span>
     215                                        <div class="uploaded">
     216                                                <div class="list">
     217                                                </div>
    216218                                        </div>
    217219                                </div>
    218                                 <span class="customize-control-title header-default">
    219                                         <?php _ex( 'Suggested', 'custom headers' ); ?>
    220                                 </span>
    221                                 <div class="default">
    222                                         <div class="list">
     220                                <div class="choices-group">
     221                                        <span class="customize-control-title header-default">
     222                                                <?php _ex( 'Suggested', 'custom headers' ); ?>
     223                                        </span>
     224                                        <div class="default">
     225                                                <div class="list">
     226                                                </div>
    223227                                        </div>
    224228                                </div>
    225229                        </div>
  • src/wp-includes/js/customize-views.js

     
    173173        api.HeaderTool.ChoiceListView = wp.Backbone.View.extend({
    174174                initialize: function() {
    175175                        this.listenTo(this.collection, 'add', this.addOne);
    176                         this.listenTo(this.collection, 'remove', this.render);
    177                         this.listenTo(this.collection, 'sort', this.render);
     176                        this.listenTo(this.collection, 'remove sort', this.render);
    178177                        this.listenTo(this.collection, 'change', this.toggleList);
    179178                        this.render();
    180179                },
     
    193192                },
    194193
    195194                toggleList: function() {
    196                         var title = this.$el.parents().prev('.customize-control-title'),
    197                                 randomButton = this.$el.find('.random').parent();
    198195                        if (this.collection.shouldHideTitle()) {
    199                                 title.add(randomButton).hide();
     196                                this.$el.closest('.choices-group').hide();
    200197                        } else {
    201                                 title.add(randomButton).show();
     198                                this.$el.closest('.choices-group').show();
    202199                        }
    203200                }
    204201        });