In class-wp-customize-*, clarify/add some @param/@return blocks. Disambiguate some functions that are trying to return the void response of another function they call internally.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32535 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-05-21 22:04:29 +00:00
parent 369903cd85
commit 9333337992
5 changed files with 36 additions and 27 deletions

View File

@@ -215,7 +215,7 @@ class WP_Customize_Control {
* @since 4.0.0
* @access public
*
* @return bool Always true.
* @return true Always true.
*/
public function active_callback() {
return true;
@@ -679,6 +679,8 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*
* @param WP_Customize_Manager $manager {@see WP_Customize_Manager} instance.
* @param string $id
* @param array $args
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
@@ -1123,13 +1125,15 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
<?php
}
/**
* @return string|null
*/
public function get_current_image_src() {
$src = $this->value();
if ( isset( $this->get_url ) ) {
$src = call_user_func( $this->get_url, $src );
return $src;
}
return null;
}
public function render_content() {