Make WordPress Core


Ignore:
Timestamp:
05/27/2024 04:28:00 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for a few functions accepting a WP_Post object.

Follow-up to [15777], [23769], [24490], [25697], [37252], [49544].

See #60699.

File:
1 edited

Legend:

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

    r57867 r58212  
    466466 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    467467 *
    468  * @param int|object $post      Optional. Post ID or object. Default uses the global `$post`.
    469  * @param bool       $leavename Optional. Whether to keep the page name. Default false.
     468 * @param int|WP_Post $post      Optional. Post ID or object. Default uses the global `$post`.
     469 * @param bool        $leavename Optional. Whether to keep the page name. Default false.
    470470 * @return string The attachment permalink.
    471471 */
Note: See TracChangeset for help on using the changeset viewer.