mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 08:36:04 +01:00
Customizer: Only tie header button action events to the header controls.
props danielbachhuber. fixes #28046. see #27848. Built from https://develop.svn.wordpress.org/trunk@28269 git-svn-id: http://core.svn.wordpress.org/trunk@28097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
644024dfc4
commit
962e8113ab
@ -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');
|
||||||
|
|
||||||
|
2
wp-admin/js/customize-controls.min.js
vendored
2
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user