diff --git a/src/wp-admin/includes/class-wp-filesystem-base.php b/src/wp-admin/includes/class-wp-filesystem-base.php index ed9bb0de9e..10af816dbe 100644 --- a/src/wp-admin/includes/class-wp-filesystem-base.php +++ b/src/wp-admin/includes/class-wp-filesystem-base.php @@ -168,7 +168,7 @@ class WP_Filesystem_Base { * @since 2.7.0 * * @param string $folder the folder to locate. - * @return string The location of the remote path. + * @return string|false The location of the remote path, false on failure. */ public function find_folder( $folder ) { @@ -236,7 +236,7 @@ class WP_Filesystem_Base { * @param string $folder The folder to locate. * @param string $base The folder to start searching from. * @param bool $loop If the function has recursed, Internal use only. - * @return string The location of the remote path. + * @return string|false The location of the remote path, false to cease looping. */ public function search_for_folder( $folder, $base = '.', $loop = false ) { if ( empty( $base ) || '.' == $base ) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 14fa194ede..459468dd3e 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -191,11 +191,10 @@ function validate_file_to_edit( $file, $allowed_files = '' ) { * * @see wp_handle_upload_error * - * @param array $file Reference to a single element of $_FILES. Call the function once for - * each uploaded file. - * @param array $overrides An associative array of names => values to override default variables. - * @param string $time Time formatted in 'yyyy/mm'. - * @param string $action Expected value for $_POST['action']. + * @param array $file Reference to a single element of $_FILES. Call the function once for each uploaded file. + * @param array|false $overrides An associative array of names => values to override default variables. Default false. + * @param string $time Time formatted in 'yyyy/mm'. + * @param string $action Expected value for $_POST['action']. * @return array On success, returns an associative array of file attributes. On failure, returns * $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). */ diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php index 660df9afca..b44f6d596f 100644 --- a/src/wp-includes/deprecated.php +++ b/src/wp-includes/deprecated.php @@ -2161,7 +2161,7 @@ function attribute_escape( $text ) { * @param string|int $name Widget ID. * @param callback $output_callback Run when widget is called. * @param string $classname Classname widget option. - * @param mixed $params,... Widget parameters. + * @param mixed $params ,... Widget parameters. */ function register_sidebar_widget($name, $output_callback, $classname = '') { _deprecated_function( __FUNCTION__, '2.8', 'wp_register_sidebar_widget()' ); diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 072d12cfa3..b5327ed788 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -869,7 +869,7 @@ function wp_remote_fopen( $uri ) { * * @since 2.0.0 * - * @param string $query_vars Default WP_Query arguments. + * @param string|array $query_vars Default WP_Query arguments. */ function wp( $query_vars = '' ) { global $wp, $wp_query, $wp_the_query; diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index 5e88467daa..8953aaa021 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -449,7 +449,7 @@ function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $d * the specified object. * @param bool $single Optional, default is false. If true, return only the first value of the * specified meta_key. This parameter has no effect if meta_key is not specified. - * @return string|array Single metadata value, or array of values + * @return mixed Single metadata value, or array of values */ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) { if ( ! $meta_type || ! is_numeric( $object_id ) ) { diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 5bf5fba17f..593e130aca 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -3942,7 +3942,7 @@ class WP_Query { * @since 1.5.0 * @access public * - * @param string $query URL query string. + * @param string|array $query URL query string or array of vars. */ public function __construct($query = '') { if ( ! empty($query) ) {