@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | /** |
264 | 264 | * @access public |
265 | 265 | * |
266 | - * @return bool |
|
266 | + * @return string |
|
267 | 267 | */ |
268 | 268 | public function cwd() { |
269 | 269 | $cwd = ssh2_sftp_realpath( $this->sftp_link, '.' ); |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * @param string $group |
291 | 291 | * @param bool $recursive |
292 | 292 | * |
293 | - * @return bool |
|
293 | + * @return boolean|string |
|
294 | 294 | */ |
295 | 295 | public function chgrp($file, $group, $recursive = false ) { |
296 | 296 | if ( ! $this->exists($file) ) |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * @param string $file Path to the file. |
335 | 335 | * @param string|int $owner A user name or number. |
336 | 336 | * @param bool $recursive Optional. If set True changes file owner recursivly. Default False. |
337 | - * @return bool True on success or false on failure. |
|
337 | + * @return boolean|string True on success or false on failure. |
|
338 | 338 | */ |
339 | 339 | public function chown( $file, $owner, $recursive = false ) { |
340 | 340 | if ( ! $this->exists($file) ) |
@@ -804,7 +804,7 @@ |
||
804 | 804 | * |
805 | 805 | * @param string $compare The compare operator to use |
806 | 806 | * @param string|array $value The value |
807 | - * @return string|false|int The value to be used in SQL or false on error. |
|
807 | + * @return string The value to be used in SQL or false on error. |
|
808 | 808 | */ |
809 | 809 | public function build_value( $compare, $value ) { |
810 | 810 | if ( ! isset( $value ) ) |
@@ -879,7 +879,7 @@ discard block |
||
879 | 879 | * @staticvar string $_charset |
880 | 880 | * |
881 | 881 | * @param string $string The text which is to be encoded. |
882 | - * @param int|string $quote_style Optional. Converts double quotes if set to ENT_COMPAT, |
|
882 | + * @param integer $quote_style Optional. Converts double quotes if set to ENT_COMPAT, |
|
883 | 883 | * both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. |
884 | 884 | * Also compatible with old values; converting single quotes if set to 'single', |
885 | 885 | * double if set to 'double' or both if otherwise set. |
@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | * @since 2.8.0 |
953 | 953 | * |
954 | 954 | * @param string $string The text which is to be decoded. |
955 | - * @param string|int $quote_style Optional. Converts double quotes if set to ENT_COMPAT, |
|
955 | + * @param integer $quote_style Optional. Converts double quotes if set to ENT_COMPAT, |
|
956 | 956 | * both single and double if set to ENT_QUOTES or |
957 | 957 | * none if set to ENT_NOQUOTES. |
958 | 958 | * Also compatible with old _wp_specialchars() values; |
@@ -3692,7 +3692,7 @@ discard block |
||
3692 | 3692 | * @since 2.8.1 |
3693 | 3693 | * @access private |
3694 | 3694 | * |
3695 | - * @param string|array $search The value being searched for, otherwise known as the needle. |
|
3695 | + * @param string[] $search The value being searched for, otherwise known as the needle. |
|
3696 | 3696 | * An array may be used to designate multiple needles. |
3697 | 3697 | * @param string $subject The string being searched and replaced on, otherwise known as the haystack. |
3698 | 3698 | * @return string The string with the replaced svalues. |
@@ -4358,7 +4358,6 @@ discard block |
||
4358 | 4358 | * @link https://secure.php.net/sprintf |
4359 | 4359 | * |
4360 | 4360 | * @param string $pattern The string which formatted args are inserted. |
4361 | - * @param mixed $args ,... Arguments to be formatted into the $pattern string. |
|
4362 | 4361 | * @return string The formatted string. |
4363 | 4362 | */ |
4364 | 4363 | function wp_sprintf( $pattern ) { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @param string $type Type of time to retrieve. Accepts 'mysql', 'timestamp', or PHP date |
57 | 57 | * format string (e.g. 'Y-m-d'). |
58 | - * @param int|bool $gmt Optional. Whether to use GMT timezone. Default false. |
|
58 | + * @param integer $gmt Optional. Whether to use GMT timezone. Default false. |
|
59 | 59 | * @return int|string Integer if $type is 'timestamp', string otherwise. |
60 | 60 | */ |
61 | 61 | function current_time( $type, $gmt = 0 ) { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * @since 2.0.5 |
437 | 437 | * |
438 | 438 | * @param string|array|object $data Data that might be serialized. |
439 | - * @return mixed A scalar data |
|
439 | + * @return string A scalar data |
|
440 | 440 | */ |
441 | 441 | function maybe_serialize( $data ) { |
442 | 442 | if ( is_array( $data ) || is_object( $data ) ) |
@@ -771,9 +771,6 @@ discard block |
||
771 | 771 | * |
772 | 772 | * @since 1.5.0 |
773 | 773 | * |
774 | - * @param string|array $key Either a query variable key, or an associative array of query variables. |
|
775 | - * @param string $value Optional. Either a query variable value, or a URL to act upon. |
|
776 | - * @param string $url Optional. A URL to act upon. |
|
777 | 774 | * @return string New URL query string (unescaped). |
778 | 775 | */ |
779 | 776 | function add_query_arg() { |
@@ -1428,7 +1425,7 @@ discard block |
||
1428 | 1425 | * @since 2.0.4 |
1429 | 1426 | * |
1430 | 1427 | * @param string $actionurl URL to add nonce action. |
1431 | - * @param int|string $action Optional. Nonce action name. Default -1. |
|
1428 | + * @param integer $action Optional. Nonce action name. Default -1. |
|
1432 | 1429 | * @param string $name Optional. Nonce name. Default '_wpnonce'. |
1433 | 1430 | * @return string Escaped URL with nonce action added. |
1434 | 1431 | */ |
@@ -1457,7 +1454,7 @@ discard block |
||
1457 | 1454 | * |
1458 | 1455 | * @since 2.0.4 |
1459 | 1456 | * |
1460 | - * @param int|string $action Optional. Action name. Default -1. |
|
1457 | + * @param integer $action Optional. Action name. Default -1. |
|
1461 | 1458 | * @param string $name Optional. Nonce name. Default '_wpnonce'. |
1462 | 1459 | * @param bool $referer Optional. Whether to set the referer field for validation. Default true. |
1463 | 1460 | * @param bool $echo Optional. Whether to display or return hidden form field. Default true. |
@@ -1549,7 +1546,7 @@ discard block |
||
1549 | 1546 | * |
1550 | 1547 | * @since 4.5.0 |
1551 | 1548 | * |
1552 | - * @return string|false Referer URL on success, false on failure. |
|
1549 | + * @return string Referer URL on success, false on failure. |
|
1553 | 1550 | */ |
1554 | 1551 | function wp_get_raw_referer() { |
1555 | 1552 | if ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { |
@@ -1861,7 +1858,7 @@ discard block |
||
1861 | 1858 | * @param bool $create_dir Optional. Whether to check and create the uploads directory. |
1862 | 1859 | * Default true for backward compatibility. |
1863 | 1860 | * @param bool $refresh_cache Optional. Whether to refresh the cache. Default false. |
1864 | - * @return array See above for description. |
|
1861 | + * @return callable|null See above for description. |
|
1865 | 1862 | */ |
1866 | 1863 | function wp_upload_dir( $time = null, $create_dir = true, $refresh_cache = false ) { |
1867 | 1864 | static $cache = array(), $tested_paths = array(); |
@@ -4692,7 +4689,7 @@ discard block |
||
4692 | 4689 | * |
4693 | 4690 | * @see __return_false() |
4694 | 4691 | * |
4695 | - * @return true True. |
|
4692 | + * @return boolean True. |
|
4696 | 4693 | */ |
4697 | 4694 | function __return_true() { |
4698 | 4695 | return true; |
@@ -4814,7 +4811,7 @@ discard block |
||
4814 | 4811 | * @param int $start The ID to start the loop check at. |
4815 | 4812 | * @param int $start_parent The parent_ID of $start to use instead of calling $callback( $start ). |
4816 | 4813 | * Use null to always use $callback |
4817 | - * @param array $callback_args Optional. Additional arguments to send to $callback. |
|
4814 | + * @param string[] $callback_args Optional. Additional arguments to send to $callback. |
|
4818 | 4815 | * @return array IDs of all members of loop. |
4819 | 4816 | */ |
4820 | 4817 | function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_args = array() ) { |
@@ -432,7 +432,7 @@ |
||
432 | 432 | * |
433 | 433 | * @see get_children() |
434 | 434 | * |
435 | - * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`. |
|
435 | + * @param integer $post_id Optional. Post ID or WP_Post object. Default is global `$post`. |
|
436 | 436 | * @param array|null $args Optional. Arguments for retrieving post revisions. Default null. |
437 | 437 | * @return array An array of revisions, or an empty array if none. |
438 | 438 | */ |
@@ -723,7 +723,7 @@ |
||
723 | 723 | * @since 2.9.0 |
724 | 724 | * |
725 | 725 | * @param int $count Number of posts with that tag. |
726 | - * @return int Scaled count. |
|
726 | + * @return double Scaled count. |
|
727 | 727 | */ |
728 | 728 | function default_topic_count_scale( $count ) { |
729 | 729 | return round(log10($count + 1) * 100); |
@@ -400,8 +400,8 @@ discard block |
||
400 | 400 | * |
401 | 401 | * @since 3.4.0 |
402 | 402 | * |
403 | - * @param mixed $ajax_message Ajax return |
|
404 | - * @param mixed $message UI message |
|
403 | + * @param integer $ajax_message Ajax return |
|
404 | + * @param string $message UI message |
|
405 | 405 | */ |
406 | 406 | protected function wp_die( $ajax_message, $message = null ) { |
407 | 407 | if ( $this->doing_ajax() ) { |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | * @since 3.4.0 |
445 | 445 | * @deprecated 4.7.0 |
446 | 446 | * |
447 | - * @return callable Die handler. |
|
447 | + * @return string Die handler. |
|
448 | 448 | */ |
449 | 449 | public function wp_die_handler() { |
450 | 450 | _deprecated_function( __METHOD__, '4.7.0' ); |
@@ -4275,7 +4275,7 @@ discard block |
||
4275 | 4275 | * |
4276 | 4276 | * @param WP_Error $validity |
4277 | 4277 | * @param mixed $value |
4278 | - * @return mixed |
|
4278 | + * @return WP_Error |
|
4279 | 4279 | */ |
4280 | 4280 | public function _validate_header_video( $validity, $value ) { |
4281 | 4281 | $video = get_attached_file( absint( $value ) ); |
@@ -4307,7 +4307,7 @@ discard block |
||
4307 | 4307 | * |
4308 | 4308 | * @param WP_Error $validity |
4309 | 4309 | * @param mixed $value |
4310 | - * @return mixed |
|
4310 | + * @return WP_Error |
|
4311 | 4311 | */ |
4312 | 4312 | public function _validate_external_header_video( $validity, $value ) { |
4313 | 4313 | $video = esc_url_raw( $value ); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @access public |
99 | 99 | * |
100 | 100 | * @param SimplePie $data Data to save. |
101 | - * @return true Always true. |
|
101 | + * @return boolean Always true. |
|
102 | 102 | */ |
103 | 103 | public function save($data) { |
104 | 104 | if ( $data instanceof SimplePie ) { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * @since 2.8.0 |
153 | 153 | * @access public |
154 | 154 | * |
155 | - * @return true Always true. |
|
155 | + * @return boolean Always true. |
|
156 | 156 | */ |
157 | 157 | public function unlink() { |
158 | 158 | delete_transient($this->name); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @since 4.7.0 |
102 | 102 | * @access private |
103 | 103 | * |
104 | - * @param bool|int $new_priority Optional. The priority of the new filter being added. Default false, |
|
104 | + * @param integer $new_priority Optional. The priority of the new filter being added. Default false, |
|
105 | 105 | * for no priority being added. |
106 | 106 | * @param bool $priority_existed Optional. Flag for whether the priority already existed before the new |
107 | 107 | * filter was added. Default false. |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | * @since 4.7.0 |
270 | 270 | * @access public |
271 | 271 | * |
272 | - * @param mixed $value The value to filter. |
|
272 | + * @param string $value The value to filter. |
|
273 | 273 | * @param array $args Arguments to pass to callbacks. |
274 | 274 | * @return mixed The filtered value after all hooked functions are applied to it. |
275 | 275 | */ |