Make WordPress Core

Changeset 54495


Ignore:
Timestamp:
10/11/2022 05:35:05 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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: 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/plupload/handlers.js

    r54085 r54495  
    400400    var tryAgain;
    401401
    402     $( '.media-upload-form' ).bind( 'click.uploader', function( e ) {
     402    $( '.media-upload-form' ).on( 'click.uploader', function( e ) {
    403403        var target = $( e.target ), tr, c;
    404404
     
    558558        uploader = new plupload.Uploader( wpUploaderInit );
    559559
    560         $( '#image_resize' ).bind( 'change', function() {
     560        $( '#image_resize' ).on( 'change', function() {
    561561            var arg = $( this ).prop( 'checked' );
    562562
Note: See TracChangeset for help on using the changeset viewer.