Make WordPress Core

Changeset 51238


Ignore:
Timestamp:
06/25/2021 02:49:34 PM (3 years ago)
Author:
desrosj
Message:

Widgets: Avoid a TypeError when adding a widget in the Customizer.

This fixes a bug where action is set to null when adding a widget in the Customizer.

Fixes #53488. See #53421, #53419.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/util.js

    r51187 r51238  
    121121                        deferred.done( function() {
    122122                            if (
     123                                action &&
     124                                action.data &&
    123125                                'query-attachments' === action.data.action &&
    124126                                deferred.jqXHR.hasOwnProperty( 'getResponseHeader' ) &&
Note: See TracChangeset for help on using the changeset viewer.