[wp-trac] [WordPress Trac] #41361: Text widget can raise JS error if customize-base is enqueued on widgets admin screen

WordPress Trac noreply at wordpress.org
Tue Jul 18 22:27:47 UTC 2017


#41361: Text widget can raise JS error if customize-base is enqueued on widgets
admin screen
--------------------------+-------------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.8.1
Component:  Widgets       |    Version:  4.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41361>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list