WordPress.org

Make WordPress Core

Changeset 20301


Ignore:
Timestamp:
03/28/2012 09:33:32 AM (8 years ago)
Author:
koopersmith
Message:

Theme Customizer: Properly bind the 'upload new' and 'remove image' actions in the image picker. see #19910.

This occurred because we weren't calling UploadControl.ready (where the actions are declared and the uploader is initialized) in ImageControl.ready.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/customize-controls.dev.js

    r20299 r20301  
    161161
    162162    api.ImageControl = api.UploadControl.extend({
    163         ready: function( id, value, options ) {
     163        ready: function() {
    164164            var control = this;
     165
     166            api.UploadControl.prototype.ready.call( this );
    165167
    166168            this.thumbnail    = this.container.find('.thumbnail img');
Note: See TracChangeset for help on using the changeset viewer.