diff --git a/wp-includes/js/thickbox/thickbox.js b/wp-includes/js/thickbox/thickbox.js
index 55c66caaf3..62ffb4b941 100644
--- a/wp-includes/js/thickbox/thickbox.js
+++ b/wp-includes/js/thickbox/thickbox.js
@@ -49,12 +49,12 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
jQuery("html").css("overflow","hidden");
if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
jQuery("body").append("
");
- jQuery("#TB_overlay").trigger( 'click', tb_remove );
+ jQuery("#TB_overlay").on( 'click', tb_remove );
}
}else{//all others
if(document.getElementById("TB_overlay") === null){
jQuery("body").append("
");
- jQuery("#TB_overlay").trigger( 'click', tb_remove );
+ jQuery("#TB_overlay").on( 'click', tb_remove );
jQuery( 'body' ).addClass( 'modal-open' );
}
}
@@ -141,7 +141,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
TB_HEIGHT = imageHeight + 60;
jQuery("#TB_window").append(""+thickboxL10n.close+" " + ""+caption+"
" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "
"+thickboxL10n.close+"
");
- jQuery("#TB_closeWindowButton").trigger( 'click', tb_remove );
+ jQuery("#TB_closeWindowButton").on( 'click', tb_remove );
if (!(TB_PrevHTML === "")) {
function goPrev(){
@@ -151,7 +151,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
return false;
}
- jQuery("#TB_prev").trigger( 'click', goPrev );
+ jQuery("#TB_prev").on( 'click', goPrev );
}
if (!(TB_NextHTML === "")) {
@@ -161,7 +161,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
tb_show(TB_NextCaption, TB_NextURL, imageGroup);
return false;
}
- jQuery("#TB_next").trigger( 'click', goNext );
+ jQuery("#TB_next").on( 'click', goNext );
}
@@ -185,7 +185,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
tb_position();
jQuery("#TB_load").remove();
- jQuery("#TB_ImageOff").trigger( 'click', tb_remove );
+ jQuery("#TB_ImageOff").on( 'click', tb_remove );
jQuery("#TB_window").css({'visibility':'visible'}); //for safari using css instead of show
};
@@ -225,7 +225,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
}
}
- jQuery("#TB_closeWindowButton").trigger( 'click', tb_remove );
+ jQuery("#TB_closeWindowButton").on( 'click', tb_remove );
if(url.indexOf('TB_inline') != -1){
jQuery("#TB_ajaxContent").append(jQuery('#' + params['inlineId']).children());
diff --git a/wp-includes/version.php b/wp-includes/version.php
index fab197f3a4..73cebffac3 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.7-beta3-50409';
+$wp_version = '5.7-beta3-50410';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.