From 3127edf4c8fb09dbd1a3db96c9c0f250d722669e Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 16 Apr 2014 18:00:10 +0000 Subject: [PATCH] Prevent customizer header image list from listing user images twice when no theme-specified images exist fixes #27839. props mcsf git-svn-id: https://develop.svn.wordpress.org/trunk@28152 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/customize-models.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/customize-models.js b/src/wp-includes/js/customize-models.js index 3c8001c4b1..5fa62aeecc 100644 --- a/src/wp-includes/js/customize-models.js +++ b/src/wp-includes/js/customize-models.js @@ -1,4 +1,4 @@ -/* globals _wpCustomizeHeader */ +/* globals _wpCustomizeHeader, _ */ (function( $, wp ) { var api = wp.customize; api.HeaderTool = {}; @@ -142,7 +142,7 @@ } // Overridable by an extending class - if (!this.data) { + if (typeof this.data === 'undefined') { this.data = _wpCustomizeHeader.uploads; }