wp/wp-admin/js/media-upload.js
changeset 18 be944660c56a
parent 16 a86126ab1dd4
--- a/wp/wp-admin/js/media-upload.js	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/js/media-upload.js	Wed Sep 21 18:19:35 2022 +0200
@@ -108,6 +108,6 @@
 	};
 
 	// Add handler to recalculates the ThickBox position when the window is resized.
-	$(window).resize(function(){ tb_position(); });
+	$(window).on( 'resize', function(){ tb_position(); });
 
 })(jQuery);