[wp-trac] [WordPress Trac] #48890: Twenty Twenty: Customizer Controls Uncaught Errors

WordPress Trac noreply at wordpress.org
Fri Dec 6 04:57:22 UTC 2019


#48890: Twenty Twenty: Customizer Controls Uncaught Errors
---------------------------------------+------------------------------
 Reporter:  fmixell                    |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  Bundled Theme              |     Version:  5.3
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:  javascript
---------------------------------------+------------------------------

Comment (by dlh):

 Hi @fmixell, and welcome to WordPress Trac!

 Can you provide a code snippet or a list of steps that can be used to
 replicate this bug?

 A `try/catch` block would eliminate the error, but it would also mean that
 the Customizer logic in the theme might never run. If possible, I think it
 would be preferable to wrap the logic in the Customizer's built-in `ready`
 event so it will fire once the Customizer API is available. At a glance,
 Twenty Nineteen's `customize-controls.js` might be a useful guide to this
 approach.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48890#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list