Skip to content

Commit a6d9b5e

Browse files
committed
Improve inline documentation for hooks in wp-admin/customize.php.
Props kpdesign. Fixes #25444. git-svn-id: https://develop.svn.wordpress.org/trunk@25858 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 04ca72f commit a6d9b5e

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/wp-admin/customize.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
wp_enqueue_script( 'accordion' );
4545

4646
/**
47-
* Fires when additional Customizer controls scripts are enqueued.
47+
* Enqueue Customizer control scripts.
4848
*
4949
* @since 3.4.0
5050
*/
@@ -77,14 +77,14 @@
7777
?><title><?php echo $admin_title; ?></title><?php
7878

7979
/**
80-
* Fires when Customizer controls styles are printed.
80+
* Print Customizer control styles.
8181
*
8282
* @since 3.4.0
8383
*/
8484
do_action( 'customize_controls_print_styles' );
8585

8686
/**
87-
* Fires when Customizer controls scripts are printed.
87+
* Print Customizer control scripts.
8888
*
8989
* @since 3.4.0
9090
*/
@@ -151,7 +151,7 @@
151151
<?php
152152

153153
/**
154-
* Fires when Customizer controls footer scripts are printed.
154+
* Print Customizer control scripts in the footer.
155155
*
156156
* @since 3.4.0
157157
*/
@@ -172,6 +172,13 @@
172172
if ( is_ssl() && ! $cross_domain )
173173
$allowed_urls[] = home_url( '/', 'https' );
174174

175+
/**
176+
* Filter the list of URLs allowed to be clicked and followed in the Customizer preview.
177+
*
178+
* @since 3.4.0
179+
*
180+
* @param array $allowed_urls An array of allowed URLs.
181+
*/
175182
$allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) );
176183

177184
$fallback_url = add_query_arg( array(

0 commit comments

Comments
 (0)