Make WordPress Core


Ignore:
Timestamp:
03/01/2020 10:36:38 AM (5 years ago)
Author:
johnbillion
Message:

Docs: Use more specific types in parameter descriptions in place of mixed.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r47122 r47397  
    226226 * @global WP_Query $wp_query WordPress Query object.
    227227 *
    228  * @param mixed $author Optional. User ID, nickname, nicename, or array of User IDs, nicknames, and nicenames
     228 * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such to check against.
    229229 * @return bool
    230230 */
     
    254254 * @global WP_Query $wp_query WordPress Query object.
    255255 *
    256  * @param mixed $category Optional. Category ID, name, slug, or array of Category IDs, names, and slugs.
     256 * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such to check against.
    257257 * @return bool
    258258 */
     
    282282 * @global WP_Query $wp_query WordPress Query object.
    283283 *
    284  * @param mixed $tag Optional. Tag ID, name, slug, or array of Tag IDs, names, and slugs.
     284 * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such to check against.
    285285 * @return bool
    286286 */
     
    314314 * @global WP_Query $wp_query WordPress Query object.
    315315 *
    316  * @param string|array     $taxonomy Optional. Taxonomy slug or slugs.
    317  * @param int|string|array $term     Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
     316 * @param string|string[]           $taxonomy Optional. Taxonomy slug or slugs to check against.
     317 * @param int|string|int[]|string[] $term     Optional. Term ID, name, slug, or array of such to check against.
    318318 * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives).
    319319 */
Note: See TracChangeset for help on using the changeset viewer.