@@ -1374,7 +1374,7 @@ discard block |
||
| 1374 | 1374 | * |
| 1375 | 1375 | * @since 3.7.0 |
| 1376 | 1376 | * |
| 1377 | - * @param array $terms Terms to check. |
|
| 1377 | + * @param string[] $terms Terms to check. |
|
| 1378 | 1378 | * @return array Terms that are not stopwords. |
| 1379 | 1379 | */ |
| 1380 | 1380 | protected function parse_search_terms( $terms ) { |
@@ -3372,7 +3372,7 @@ discard block |
||
| 3372 | 3372 | * @access public |
| 3373 | 3373 | * |
| 3374 | 3374 | * @param string $name Property to check if set. |
| 3375 | - * @return bool Whether the property is set. |
|
| 3375 | + * @return boolean|null Whether the property is set. |
|
| 3376 | 3376 | */ |
| 3377 | 3377 | public function __isset( $name ) { |
| 3378 | 3378 | if ( in_array( $name, $this->compat_fields ) ) { |
@@ -3971,8 +3971,8 @@ discard block |
||
| 3971 | 3971 | * @global int $more |
| 3972 | 3972 | * @global int $numpages |
| 3973 | 3973 | * |
| 3974 | - * @param WP_Post|object|int $post WP_Post instance or Post ID/object. |
|
| 3975 | - * @return true True when finished. |
|
| 3974 | + * @param WP_Post $post WP_Post instance or Post ID/object. |
|
| 3975 | + * @return null|boolean True when finished. |
|
| 3976 | 3976 | */ |
| 3977 | 3977 | public function setup_postdata( $post ) { |
| 3978 | 3978 | global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages; |
@@ -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( |
@@ -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 = '' ) { |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | * @since 1.0.0 |
| 474 | 474 | * |
| 475 | 475 | * @param string $post Post content. |
| 476 | - * @return array Post before ('main'), after ('extended'), and custom read more ('more_text'). |
|
| 476 | + * @return integer Post before ('main'), after ('extended'), and custom read more ('more_text'). |
|
| 477 | 477 | */ |
| 478 | 478 | function get_extended( $post ) { |
| 479 | 479 | //Match the new style more links. |
@@ -1362,7 +1362,7 @@ discard block |
||
| 1362 | 1362 | * |
| 1363 | 1363 | * @access private |
| 1364 | 1364 | * |
| 1365 | - * @param object|WP_Post_Type $post_type_object Post type object. |
|
| 1365 | + * @param WP_Post_Type $post_type_object Post type object. |
|
| 1366 | 1366 | * @return object Object with all the labels as member variables. |
| 1367 | 1367 | */ |
| 1368 | 1368 | function get_post_type_labels( $post_type_object ) { |
@@ -1727,7 +1727,7 @@ discard block |
||
| 1727 | 1727 | * |
| 1728 | 1728 | * @param int $post_id Post ID. |
| 1729 | 1729 | * @param string $meta_key Metadata name. |
| 1730 | - * @param mixed $meta_value Optional. Metadata value. Must be serializable if |
|
| 1730 | + * @param string $meta_value Optional. Metadata value. Must be serializable if |
|
| 1731 | 1731 | * non-scalar. Default empty. |
| 1732 | 1732 | * @return bool True on success, false on failure. |
| 1733 | 1733 | */ |
@@ -2420,7 +2420,7 @@ discard block |
||
| 2420 | 2420 | * @param int $postid Optional. Post ID. Default 0. |
| 2421 | 2421 | * @param bool $force_delete Optional. Whether to bypass trash and force deletion. |
| 2422 | 2422 | * Default false. |
| 2423 | - * @return array|false|WP_Post False on failure. |
|
| 2423 | + * @return string False on failure. |
|
| 2424 | 2424 | */ |
| 2425 | 2425 | function wp_delete_post( $postid = 0, $force_delete = false ) { |
| 2426 | 2426 | global $wpdb; |
@@ -2678,7 +2678,7 @@ discard block |
||
| 2678 | 2678 | * |
| 2679 | 2679 | * @global wpdb $wpdb WordPress database abstraction object. |
| 2680 | 2680 | * |
| 2681 | - * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. |
|
| 2681 | + * @param integer $post Optional. Post ID or post object. Defaults to global $post. |
|
| 2682 | 2682 | * @return mixed|void False on failure. |
| 2683 | 2683 | */ |
| 2684 | 2684 | function wp_trash_post_comments( $post = null ) { |
@@ -2734,8 +2734,8 @@ discard block |
||
| 2734 | 2734 | * |
| 2735 | 2735 | * @global wpdb $wpdb WordPress database abstraction object. |
| 2736 | 2736 | * |
| 2737 | - * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. |
|
| 2738 | - * @return true|void |
|
| 2737 | + * @param integer $post Optional. Post ID or post object. Defaults to global $post. |
|
| 2738 | + * @return null|boolean |
|
| 2739 | 2739 | */ |
| 2740 | 2740 | function wp_untrash_post_comments( $post = null ) { |
| 2741 | 2741 | global $wpdb; |
@@ -4439,7 +4439,7 @@ discard block |
||
| 4439 | 4439 | * @since 1.5.0 |
| 4440 | 4440 | * @since 4.6.0 Converted the `$page` parameter to optional. |
| 4441 | 4441 | * |
| 4442 | - * @param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post. |
|
| 4442 | + * @param integer $page Optional. Page ID or WP_Post object. Default is global $post. |
|
| 4443 | 4443 | * @return string|false Page URI, false on error. |
| 4444 | 4444 | */ |
| 4445 | 4445 | function get_page_uri( $page = 0 ) { |
@@ -5242,7 +5242,7 @@ discard block |
||
| 5242 | 5242 | * |
| 5243 | 5243 | * @since 2.1.0 |
| 5244 | 5244 | * |
| 5245 | - * @param string|int $mime MIME type or attachment ID. |
|
| 5245 | + * @param integer $mime MIME type or attachment ID. |
|
| 5246 | 5246 | * @return string|false Icon, false otherwise. |
| 5247 | 5247 | */ |
| 5248 | 5248 | function wp_mime_type_icon( $mime = 0 ) { |
@@ -6142,7 +6142,7 @@ discard block |
||
| 6142 | 6142 | * @access private |
| 6143 | 6143 | * |
| 6144 | 6144 | * @param string $post_name Slug. |
| 6145 | - * @param string $post_ID Optional. Post ID that should be ignored. Default 0. |
|
| 6145 | + * @param integer $post_ID Optional. Post ID that should be ignored. Default 0. |
|
| 6146 | 6146 | */ |
| 6147 | 6147 | function wp_add_trashed_suffix_to_post_name_for_trashed_posts( $post_name, $post_ID = 0 ) { |
| 6148 | 6148 | $trashed_posts_with_desired_slug = get_posts( array( |
@@ -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 { |