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. git-svn-id: http://svn.automattic.com/wordpress/trunk@20301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
23ef6d4aab
commit
fc22367830
|
@ -160,9 +160,11 @@
|
|||
});
|
||||
|
||||
api.ImageControl = api.UploadControl.extend({
|
||||
ready: function( id, value, options ) {
|
||||
ready: function() {
|
||||
var control = this;
|
||||
|
||||
api.UploadControl.prototype.ready.call( this );
|
||||
|
||||
this.thumbnail = this.container.find('.thumbnail img');
|
||||
this.thumbnailSrc = $.proxy( this.thumbnailSrc, this );
|
||||
this.setting.bind( this.thumbnailSrc );
|
||||
|
|
Loading…
Reference in New Issue