Changeset 34056
- Timestamp:
- 09/11/2015 08:12:50 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/js/customize-controls.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r33939 r34056 2183 2183 */ 2184 2184 setImageFromAttachment: function( attachment ) { 2185 var icon = typeof attachment.sizes['site_icon-32'] !== 'undefined' ? attachment.sizes['site_icon-32'] : attachment.sizes.thumbnail; 2185 var sizes = [ 'site_icon-32', 'thumbnail', 'full' ], 2186 icon; 2187 2188 _.each( sizes, function( size ) { 2189 if ( ! icon && ! _.isUndefined ( attachment.sizes[ size ] ) ) { 2190 icon = attachment.sizes[ size ]; 2191 } 2192 } ); 2186 2193 2187 2194 this.params.attachment = attachment; … … 2189 2196 // Set the Customizer setting; the callback takes care of rendering. 2190 2197 this.setting( attachment.id ); 2191 2192 2198 2193 2199 // Update the icon in-browser.
Note: See TracChangeset
for help on using the changeset viewer.