Customizer: Only tie header button action events to the header controls.
props danielbachhuber. fixes #28046. see #27848. git-svn-id: https://develop.svn.wordpress.org/trunk@28269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e42ec45553
commit
9259c6baa7
|
@ -309,8 +309,8 @@
|
||||||
|
|
||||||
api.HeaderControl = api.Control.extend({
|
api.HeaderControl = api.Control.extend({
|
||||||
ready: function() {
|
ready: function() {
|
||||||
this.btnRemove = $('.actions .remove');
|
this.btnRemove = $('#customize-control-header_image .actions .remove');
|
||||||
this.btnNew = $('.actions .new');
|
this.btnNew = $('#customize-control-header_image .actions .new');
|
||||||
|
|
||||||
_.bindAll(this, 'openMedia', 'removeImage');
|
_.bindAll(this, 'openMedia', 'removeImage');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue