@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | * @param bool $avoid_die When true, a disallowed comment will result in the function |
797 | 797 | * returning a WP_Error object, rather than executing wp_die(). |
798 | 798 | * Default false. |
799 | - * @return bool Whether comment flooding is occurring. |
|
799 | + * @return boolean|null Whether comment flooding is occurring. |
|
800 | 800 | */ |
801 | 801 | function wp_check_comment_flood( $is_flood, $ip, $email, $date, $avoid_die = false ) { |
802 | 802 | |
@@ -1636,7 +1636,7 @@ discard block |
||
1636 | 1636 | * |
1637 | 1637 | * @since 2.0.4 |
1638 | 1638 | * |
1639 | - * @return array Comment author, email, url respectively. |
|
1639 | + * @return string Comment author, email, url respectively. |
|
1640 | 1640 | */ |
1641 | 1641 | function wp_get_current_commenter() { |
1642 | 1642 | // Cookies should already be sanitized. |
@@ -2830,7 +2830,7 @@ discard block |
||
2830 | 2830 | * |
2831 | 2831 | * @param WP_Post $posts Post data object. |
2832 | 2832 | * @param WP_Query $query Query object. |
2833 | - * @return array |
|
2833 | + * @return WP_Post |
|
2834 | 2834 | */ |
2835 | 2835 | function _close_comments_for_old_posts( $posts, $query ) { |
2836 | 2836 | if ( empty( $posts ) || ! $query->is_singular() || ! get_option( 'close_comments_for_old_posts' ) ) |
@@ -721,7 +721,7 @@ |
||
721 | 721 | * @see http://php.net/manual/en/url.constants.php |
722 | 722 | * |
723 | 723 | * @param int $constant PHP_URL_* constant. |
724 | - * @return string|bool The named key or false. |
|
724 | + * @return string|false The named key or false. |
|
725 | 725 | */ |
726 | 726 | function _wp_translate_php_url_constant_to_key( $constant ) { |
727 | 727 | $translation = array( |
@@ -1048,6 +1048,12 @@ |
||
1048 | 1048 | self::__construct(); |
1049 | 1049 | } |
1050 | 1050 | |
1051 | + /** |
|
1052 | + * @param string $method |
|
1053 | + * @param string $callback |
|
1054 | + * @param string[] $args |
|
1055 | + * @param string $help |
|
1056 | + */ |
|
1051 | 1057 | function addCallback($method, $callback, $args, $help) |
1052 | 1058 | { |
1053 | 1059 | $this->callbacks[$method] = $callback; |
@@ -83,7 +83,7 @@ |
||
83 | 83 | * |
84 | 84 | * @since 4.7.0 |
85 | 85 | * |
86 | - * @param int|WP_User $user_id User's ID or a WP_User object. Defaults to current user. |
|
86 | + * @param integer $user_id User's ID or a WP_User object. Defaults to current user. |
|
87 | 87 | * @return string The locale of the user. |
88 | 88 | */ |
89 | 89 | function get_user_locale( $user_id = 0 ) { |
@@ -2191,7 +2191,7 @@ |
||
2191 | 2191 | * |
2192 | 2192 | * @staticvar bool $forced_content |
2193 | 2193 | * |
2194 | - * @param bool $force |
|
2194 | + * @param string|boolean $force |
|
2195 | 2195 | * @return bool True if forced, false if not forced. |
2196 | 2196 | */ |
2197 | 2197 | function force_ssl_content( $force = '' ) { |
@@ -1867,7 +1867,7 @@ |
||
1867 | 1867 | * @param string $option_group A settings group name. Should correspond to a whitelisted option key name. |
1868 | 1868 | * Default whitelisted option key names include "general," "discussion," and "reading," among others. |
1869 | 1869 | * @param string $option_name The name of an option to sanitize and save. |
1870 | - * @param array $args { |
|
1870 | + * @param callable $args { |
|
1871 | 1871 | * Data used to describe the setting when registered. |
1872 | 1872 | * |
1873 | 1873 | * @type string $type The type of data associated with this setting. |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @global WP_Query $wp_query Global WP_Query instance. |
21 | 21 | * |
22 | 22 | * @param string $var The variable key to retrieve. |
23 | - * @param mixed $default Optional. Value to return if the query variable is not set. Default empty. |
|
23 | + * @param integer $default Optional. Value to return if the query variable is not set. Default empty. |
|
24 | 24 | * @return mixed Contents of the query variable. |
25 | 25 | */ |
26 | 26 | function get_query_var( $var, $default = '' ) { |
@@ -286,8 +286,8 @@ discard block |
||
286 | 286 | * |
287 | 287 | * @global WP_Query $wp_query Global WP_Query instance. |
288 | 288 | * |
289 | - * @param string|array $taxonomy Optional. Taxonomy slug or slugs. |
|
290 | - * @param int|string|array $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs. |
|
289 | + * @param string $taxonomy Optional. Taxonomy slug or slugs. |
|
290 | + * @param string $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs. |
|
291 | 291 | * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives). |
292 | 292 | */ |
293 | 293 | function is_tax( $taxonomy = '', $term = '' ) { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * @global array $wp_rest_additional_fields Holds registered fields, organized |
79 | 79 | * by object type. |
80 | 80 | * |
81 | - * @param string|array $object_type Object(s) the field is being registered |
|
81 | + * @param string $object_type Object(s) the field is being registered |
|
82 | 82 | * to, "post"|"term"|"comment" etc. |
83 | 83 | * @param string $attribute The attribute name. |
84 | 84 | * @param array $args { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * @access public |
249 | 249 | * |
250 | 250 | * @param WP_REST_Request $request Request object. |
251 | - * @return WP_Error|stdClass $prepared_attachment Post object. |
|
251 | + * @return string $prepared_attachment Post object. |
|
252 | 252 | */ |
253 | 253 | protected function prepare_item_for_database( $request ) { |
254 | 254 | $prepared_attachment = parent::prepare_item_for_database( $request ); |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | * @since 4.7.0 |
484 | 484 | * @access protected |
485 | 485 | * |
486 | - * @param array $data Supplied file data. |
|
486 | + * @param string $data Supplied file data. |
|
487 | 487 | * @param array $headers HTTP headers from the request. |
488 | 488 | * @return array|WP_Error Data from wp_handle_sideload(). |
489 | 489 | */ |