Make WordPress Core

Changeset 51947


Ignore:
Timestamp:
10/28/2021 05:49:08 PM (5 years ago)
Author:
joedolson
Message:

Media: Remove deprecated click function in media uploader.

Replace the call to jQuery's deprecated click handler.

Props kapilpaul.
Fixes #53261.

File:
1 edited

Legend:

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

    r51227 r51947  
    150150
    151151        // Bind Ajax to the new Delete button.
    152         jQuery( 'a.delete', item ).click( function(){
     152        jQuery( 'a.delete', item ).on( 'click', function(){
    153153                // Tell the server to delete it. TODO: Handle exceptions.
    154154                jQuery.ajax({
    … …  
    168168
    169169        // Bind Ajax to the new Undo button.
    170         jQuery( 'a.undo', item ).click( function(){
     170        jQuery( 'a.undo', item ).on( 'click', function(){
    171171                // Tell the server to untrash it. TODO: Handle exceptions.
    172172                jQuery.ajax({
Note: See TracChangeset for help on using the changeset viewer.