From 0cae966012f13008ddb8ade2c2a5d6175eaceff6 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 1 Oct 2014 19:07:14 +0000 Subject: [PATCH] Add a namespace to the click handler registration for `.insert-media` in `media-editor.js`: `click.add-media-button`. This is a stopgap to allow devs to override the default behavior. Fixes #23096. git-svn-id: https://develop.svn.wordpress.org/trunk@29802 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/media-editor.js b/src/wp-includes/js/media-editor.js index 6cdd8cb641..c4ff48426f 100644 --- a/src/wp-includes/js/media-editor.js +++ b/src/wp-includes/js/media-editor.js @@ -1077,7 +1077,7 @@ */ init: function() { $(document.body) - .on( 'click', '.insert-media', function( event ) { + .on( 'click.add-media-button', '.insert-media', function( event ) { var elem = $( event.currentTarget ), editor = elem.data('editor'), options = {