mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@51238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e27b245ea6
commit
a3acf737e1
@ -120,6 +120,8 @@ window.wp = window.wp || {};
|
||||
var context = this;
|
||||
deferred.done( function() {
|
||||
if (
|
||||
action &&
|
||||
action.data &&
|
||||
'query-attachments' === action.data.action &&
|
||||
deferred.jqXHR.hasOwnProperty( 'getResponseHeader' ) &&
|
||||
deferred.jqXHR.getResponseHeader( 'X-WP-Total' )
|
||||
|
Loading…
x
Reference in New Issue
Block a user