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
This commit is contained in:
parent
4daab443c0
commit
0cae966012
@ -1077,7 +1077,7 @@
|
|||||||
*/
|
*/
|
||||||
init: function() {
|
init: function() {
|
||||||
$(document.body)
|
$(document.body)
|
||||||
.on( 'click', '.insert-media', function( event ) {
|
.on( 'click.add-media-button', '.insert-media', function( event ) {
|
||||||
var elem = $( event.currentTarget ),
|
var elem = $( event.currentTarget ),
|
||||||
editor = elem.data('editor'),
|
editor = elem.data('editor'),
|
||||||
options = {
|
options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user