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@25826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-10-24 22:53:23 +00:00
parent 8ae8e01b67
commit c8c2c8d2a2
1 changed files with 26 additions and 0 deletions

View File

@ -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_footer_scripts', '_wp_footer_scripts' );
add_action( 'customize_controls_print_styles', 'print_admin_styles', 20 ); 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' ); do_action( 'customize_controls_init' );
wp_enqueue_script( 'customize-controls' ); wp_enqueue_script( 'customize-controls' );
@ -38,6 +43,11 @@ wp_enqueue_style( 'customize-controls' );
wp_enqueue_script( 'accordion' ); wp_enqueue_script( 'accordion' );
/**
* Fires when additional Customizer controls scripts are enqueued.
*
* @since 3.4.0
*/
do_action( 'customize_controls_enqueue_scripts' ); do_action( 'customize_controls_enqueue_scripts' );
// Let's roll. // 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') ) ) ); $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) );
?><title><?php echo $admin_title; ?></title><?php ?><title><?php echo $admin_title; ?></title><?php
/**
* Fires when Customizer controls styles are printed.
*
* @since 3.4.0
*/
do_action( 'customize_controls_print_styles' ); do_action( 'customize_controls_print_styles' );
/**
* Fires when Customizer controls scripts are printed.
*
* @since 3.4.0
*/
do_action( 'customize_controls_print_scripts' ); do_action( 'customize_controls_print_scripts' );
?> ?>
</head> </head>
@ -129,6 +150,11 @@ do_action( 'customize_controls_print_scripts' );
<div id="customize-preview" class="wp-full-overlay-main"></div> <div id="customize-preview" class="wp-full-overlay-main"></div>
<?php <?php
/**
* Fires when Customizer controls footer scripts are printed.
*
* @since 3.4.0
*/
do_action( 'customize_controls_print_footer_scripts' ); do_action( 'customize_controls_print_footer_scripts' );
// If the frontend and the admin are served from the same domain, load the // If the frontend and the admin are served from the same domain, load the