From 9259c6baa7c6de6b4a618732318af435e1b4b912 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 6 May 2014 04:29:14 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/customize-controls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index 9c28a96d5f..4bfc252a44 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -309,8 +309,8 @@ api.HeaderControl = api.Control.extend({ ready: function() { - this.btnRemove = $('.actions .remove'); - this.btnNew = $('.actions .new'); + this.btnRemove = $('#customize-control-header_image .actions .remove'); + this.btnNew = $('#customize-control-header_image .actions .new'); _.bindAll(this, 'openMedia', 'removeImage');