From 1ac5a51c18c65b2ad355511c6a0e08100b55063a Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 17 Oct 2013 04:53:09 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/customize.php. Props andg, rzen. Fixes #25444. Built from https://develop.svn.wordpress.org/trunk@25826 git-svn-id: http://core.svn.wordpress.org/trunk@25738 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/customize.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 6f337084e0..7794f3acb0 100644 --- a/wp-admin/customize.php +++ b/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') ) ) ); ?><?php echo $admin_title; ?> @@ -129,6 +150,11 @@ do_action( 'customize_controls_print_scripts' );