Make WordPress Core


Ignore:
Timestamp:
02/15/2026 11:17:55 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing null to $post parameter types in various functions.

Props apermo.
Fixes #64645.

File:
1 edited

Legend:

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

    r61454 r61649  
    14881488 * @param string|int|array $category Optional. The category name/term_id/slug,
    14891489 *                                   or an array of them to check for. Default empty.
    1490  * @param int|WP_Post      $post     Optional. Post to check. Defaults to the current post.
     1490 * @param int|WP_Post|null $post     Optional. Post to check. Defaults to the current post.
    14911491 * @return bool True if the current post has any of the given categories
    14921492 *              (or any category, if no category specified). False otherwise.
     
    15151515 * @param string|int|array $tag  Optional. The tag name/term_id/slug,
    15161516 *                               or an array of them to check for. Default empty.
    1517  * @param int|WP_Post      $post Optional. Post to check. Defaults to the current post.
     1517 * @param int|WP_Post|null $post Optional. Post to check. Defaults to the current post.
    15181518 * @return bool True if the current post has any of the given tags
    15191519 *              (or any tag, if no tag specified). False otherwise.
     
    15361536 *                                   or an array of them to check for. Default empty.
    15371537 * @param string           $taxonomy Optional. Taxonomy name. Default empty.
    1538  * @param int|WP_Post      $post     Optional. Post to check. Defaults to the current post.
     1538 * @param int|WP_Post|null $post     Optional. Post to check. Defaults to the current post.
    15391539 * @return bool True if the current post has any of the given terms
    15401540 *              (or any term, if no term specified). False otherwise.
Note: See TracChangeset for help on using the changeset viewer.