@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * @param int $dst_h The destination height. |
293 | 293 | * @param string $filter_name Optional. The Imagick filter to use when resizing. Default 'FILTER_TRIANGLE'. |
294 | 294 | * @param bool $strip_meta Optional. Strip all profiles, excluding color profiles, from the image. Default true. |
295 | - * @return bool|WP_Error |
|
295 | + * @return null|WP_Error |
|
296 | 296 | */ |
297 | 297 | protected function thumbnail_image( $dst_w, $dst_h, $filter_name = 'FILTER_TRIANGLE', $strip_meta = true ) { |
298 | 298 | $allowed_filters = array( |
@@ -745,7 +745,7 @@ discard block |
||
745 | 745 | * @since 4.7.0 |
746 | 746 | * @access protected |
747 | 747 | * |
748 | - * @return string|WP_Error File to load or WP_Error on failure. |
|
748 | + * @return string File to load or WP_Error on failure. |
|
749 | 749 | */ |
750 | 750 | protected function pdf_setup() { |
751 | 751 | try { |
@@ -183,7 +183,7 @@ |
||
183 | 183 | * @access public |
184 | 184 | * |
185 | 185 | * @param string $name Property to check if set. |
186 | - * @return bool Whether the property is set. |
|
186 | + * @return boolean|null Whether the property is set. |
|
187 | 187 | */ |
188 | 188 | public function __isset( $name ) { |
189 | 189 | if ( in_array( $name, $this->compat_fields ) ) { |
@@ -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 = '' ) { |