diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php index 6f337084e0..7794f3acb0 100644 --- a/src/wp-admin/customize.php +++ b/src/wp-admin/customize.php @@ -31,6 +31,11 @@ add_action( 'customize_controls_print_scripts', 'print_head_scripts', 20 add_action( 'customize_controls_print_footer_scripts', '_wp_footer_scripts' ); add_action( 'customize_controls_print_styles', 'print_admin_styles', 20 ); +/** + * Fires when Customizer controls are initialized, before scripts are enqueued. + * + * @since 3.4.0 + */ do_action( 'customize_controls_init' ); wp_enqueue_script( 'customize-controls' ); @@ -38,6 +43,11 @@ wp_enqueue_style( 'customize-controls' ); wp_enqueue_script( 'accordion' ); +/** + * Fires when additional Customizer controls scripts are enqueued. + * + * @since 3.4.0 + */ do_action( 'customize_controls_enqueue_scripts' ); // Let's roll. @@ -66,7 +76,18 @@ $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', ' $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) ); ?>