WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2020 10:36:38 AM (14 months 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/class-wp-query.php

    r47219 r47397  
    36313631     * @since 3.1.0
    36323632     *
    3633      * @param mixed $attachment Attachment ID, title, slug, or array of such.
     3633     * @param int|string|int[]|string[] $attachment Optional. Attachment ID, title, slug, or array of such to check against.
    36343634     * @return bool
    36353635     */
     
    36653665     * @since 3.1.0
    36663666     *
    3667      * @param mixed $author Optional. User ID, nickname, nicename, or array of User IDs, nicknames, and nicenames
     3667     * @param int|string|int[]|string[] $author Optional. User ID, nickname, nicename, or array of such to check against.
    36683668     * @return bool
    36693669     */
     
    37003700     * @since 3.1.0
    37013701     *
    3702      * @param mixed $category Optional. Category ID, name, slug, or array of Category IDs, names, and slugs.
     3702     * @param int|string|int[]|string[] $category Optional. Category ID, name, slug, or array of such to check against.
    37033703     * @return bool
    37043704     */
     
    37353735     * @since 3.1.0
    37363736     *
    3737      * @param mixed $tag Optional. Tag ID, name, slug, or array of Tag IDs, names, and slugs.
     3737     * @param int|string|int[]|string[] $tag Optional. Tag ID, name, slug, or array of such to check against.
    37383738     * @return bool
    37393739     */
     
    37763776     * @global array $wp_taxonomies
    37773777     *
    3778      * @param mixed $taxonomy Optional. Taxonomy slug or slugs.
    3779      * @param mixed $term     Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
     3778     * @param string|string[]           $taxonomy Optional. Taxonomy slug or slugs to check against.
     3779     * @param int|string|int[]|string[] $term     Optional. Term ID, name, slug, or array of such to check against.
    37803780     * @return bool True for custom taxonomy archive pages, false for built-in taxonomies (category and tag archives).
    37813781     */
Note: See TracChangeset for help on using the changeset viewer.