Skip to content

Commit 6663b8d

Browse files
Docs: Add missing descriptions for WP_Customize_Header_Image_Control methods.
Follow-up to [20545], [21037], [21354], [21383], [27497]. Props pmbaldha, nikitasolanki1812, sabernhardt, SergeyBiryukov. Fixes #63660. git-svn-id: https://develop.svn.wordpress.org/trunk@61271 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 33c8d7e commit 6663b8d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/wp-includes/customize/class-wp-customize-header-image-control.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public function __construct( $manager ) {
6565
}
6666

6767
/**
68+
* Enqueues control related scripts/styles.
69+
*
70+
* @since 3.9.0
6871
*/
6972
public function enqueue() {
7073
wp_enqueue_media();
@@ -96,6 +99,10 @@ public function enqueue() {
9699
}
97100

98101
/**
102+
* Prepares the control.
103+
*
104+
* @since 3.9.0
105+
*
99106
* @global Custom_Image_Header $custom_image_header
100107
*/
101108
public function prepare_control() {
@@ -113,6 +120,9 @@ public function prepare_control() {
113120
}
114121

115122
/**
123+
* Prints header image template.
124+
*
125+
* @since 3.9.0
116126
*/
117127
public function print_header_image_template() {
118128
?>
@@ -179,6 +189,10 @@ public function print_header_image_template() {
179189
}
180190

181191
/**
192+
* Gets current image source.
193+
*
194+
* @since 3.9.0
195+
*
182196
* @return string|void
183197
*/
184198
public function get_current_image_src() {
@@ -190,6 +204,9 @@ public function get_current_image_src() {
190204
}
191205

192206
/**
207+
* Renders the control's content.
208+
*
209+
* @since 3.9.0
193210
*/
194211
public function render_content() {
195212
$visibility = $this->get_current_image_src() ? '' : ' style="display:none" ';

0 commit comments

Comments
 (0)