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/link-template.php

    r61637 r61649  
    9595 * @since 5.7.0
    9696 *
    97  * @param WP_Post|int|null $post   Optional. Post ID or post object. Defaults to global $post.
     97 * @param int|WP_Post|null $post   Optional. Post ID or post object. Defaults to global $post.
    9898 * @param bool|null        $sample Optional. Whether to force consideration based on sample links.
    9999 *                                 If omitted, a sample link is generated if a post object is passed
Note: See TracChangeset for help on using the changeset viewer.