Make WordPress Core

Changeset 28152


Ignore:
Timestamp:
04/16/2014 06:00:10 PM (10 years ago)
Author:
markjaquith
Message:

Prevent customizer header image list from listing user images twice when no theme-specified images exist

fixes #27839. props mcsf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-models.js

    r27947 r28152  
    1 /* globals _wpCustomizeHeader */
     1/* globals _wpCustomizeHeader, _ */
    22(function( $, wp ) {
    33    var api = wp.customize;
     
    143143
    144144            // Overridable by an extending class
    145             if (!this.data) {
     145            if (typeof this.data === 'undefined') {
    146146                this.data = _wpCustomizeHeader.uploads;
    147147            }
Note: See TracChangeset for help on using the changeset viewer.