[wp-trac] [WordPress Trac] #38107: The `customize-controls` script depends on `wp-util`

WordPress Trac noreply at wordpress.org
Tue Sep 20 13:19:42 UTC 2016


#38107: The `customize-controls` script depends on `wp-util`
--------------------------+-----------------
 Reporter:  ocean90       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  Customize     |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------
 Since [30014] `customize-controls` is using `wp.template()` which is part
 of the `wp-util` script. But `wp-util` wasn't added as a dependency.
 It's currently possible that the customizer loads without `wp-util` which
 leads to a JavaScript error:

 {{{
 customize-controls.js?ver=4.7-alpha-38627:501 Uncaught TypeError:
 wp.template is not a function
 getContainer    @       customize-controls.js?ver=4.7-alpha-38627:501
 initialize      @       customize-controls.js?ver=4.7-alpha-38627:239
 initialize      @       customize-controls.js?ver=4.7-alpha-38627:550
 api.Class       @       customize-base.js?ver=4.7-alpha-38627:93
 child   @       customize-base.js?ver=4.7-alpha-38627:34
 child   @       customize-base.js?ver=4.7-alpha-38627:34
 (anonymous function)    @       customize-
 controls.js?ver=4.7-alpha-38627:3859
 each    @       jquery.js?ver=1.12.4:2
 (anonymous function)    @       customize-
 controls.js?ver=4.7-alpha-38627:3855
 i       @       jquery.js?ver=1.12.4:2
 fireWith        @       jquery.js?ver=1.12.4:2
 ready   @       jquery.js?ver=1.12.4:2
 K       @       jquery.js?ver=1.12.4:2
 }}}

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


More information about the wp-trac mailing list