#53488 closed defect (bug) (fixed)
The `action` passed to jQuery.ajax is possibly `null`
| Reported by: | ixkaito | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Widgets | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | javascript |
Description
When I add widgets from the Customizer, the console displays a TypeError action is null. Need to check if action and action.data exist.
Attachments (2)
Change History (10)
#4
@
5 years ago
It seems like action is explicitly set to null here:
That code hasn't changed for last 5 years so it sounds like we're just triggering an unhappy path introduced in this commit:
https://github.com/WordPress/wordpress-develop/commit/39ecd7846d24f5dd46833b68c6cb90dcdc070398
Given that context, the fix looks good to me.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Why is
datanull? Perhaps@wordpress/customize-widgetsis doing something wrong cc. @kevin940726.