WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#38107 closed defect (bug) (fixed)

The `customize-controls` script depends on `wp-util`

Reported by: ocean90 Owned by: ocean90
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.1
Component: Customize Keywords:
Focuses: javascript Cc:

Description

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

Change History (1)

#1 @ocean90
9 months ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 38628:

Customize: Add wp-util as a dependency for customize-controls.

Fixes #38107.

Note: See TracTickets for help on using tickets.