External Libraries: Further fix jQuery deprecations in WordPress core.

This replaces calls to the deprecated jQuery `.bind()` method with `.on()` in Plupload's `handlers.js`.

Reference: [https://api.jquery.com/bind/ jQuery API Documentation: .bind()]

Follow-up to [18482], [19266], [50001], [50270], [50367], [50383], [50410], [50420], [50429], [50627], [51947], [52429].

Props eclev91, ipajen, sarahricker.
See #51812.
Built from https://develop.svn.wordpress.org/trunk@54495


git-svn-id: http://core.svn.wordpress.org/trunk@54054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-10-11 17:37:12 +00:00
parent 48ac09448b
commit 1f002b93fe
3 changed files with 4 additions and 4 deletions

View File

@ -399,7 +399,7 @@ jQuery( document ).ready( function( $ ) {
var tryAgainCount = {};
var tryAgain;
$( '.media-upload-form' ).bind( 'click.uploader', function( e ) {
$( '.media-upload-form' ).on( 'click.uploader', function( e ) {
var target = $( e.target ), tr, c;
if ( target.is( 'input[type="radio"]' ) ) { // Remember the last used image size and alignment.
@ -557,7 +557,7 @@ jQuery( document ).ready( function( $ ) {
uploader_init = function() {
uploader = new plupload.Uploader( wpUploaderInit );
$( '#image_resize' ).bind( 'change', function() {
$( '#image_resize' ).on( 'change', function() {
var arg = $( this ).prop( 'checked' );
setResize( arg );

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-beta3-54494';
$wp_version = '6.1-beta3-54495';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.