mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@29802 git-svn-id: http://core.svn.wordpress.org/trunk@29569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d2c99a5646
commit
ebe813ca54
@ -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 = {
|
||||
|
2
wp-includes/js/media-editor.min.js
vendored
2
wp-includes/js/media-editor.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user