#41361 closed defect (bug) (fixed)
Text widget can raise JS error if customize-base is enqueued on widgets admin screen
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.8.1 | Priority: | normal |
| Severity: | normal | Version: | 4.8 |
| Component: | Widgets | Keywords: | has-patch commit fixed-major |
| Focuses: | Cc: |
Description
The Text widget is currently looking for wp.customize before attempting to interact with wp.customize.state. However, the state object is only present in the Customizer app when customize-controls is enqueued. If customize-base alone is enqueued, the wp.customize object will exist but the wp.customize.state object will not. This results in an error when the Text widget's triggerChangeIfDirty logic runs.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 41088: