WP_Customize_Manager::enqueue_control_scripts()
Enqueue scripts for customize controls.
Source
File: wp-includes/class-wp-customize-manager.php
public function enqueue_control_scripts() {
foreach ( $this->controls as $control ) {
$control->enqueue();
}
if ( ! is_multisite() && ( current_user_can( 'install_themes' ) || current_user_can( 'update_themes' ) || current_user_can( 'delete_themes' ) ) ) {
wp_enqueue_script( 'updates' );
wp_localize_script( 'updates', '_wpUpdatesItemCounts', array(
'totals' => wp_get_update_data(),
) );
}
}
Changelog
Version | Description |
---|---|
WP-3.4.0 | Introduced. |