WordPress.org

Make WordPress Core

Changeset 51425


Ignore:
Timestamp:
07/13/2021 06:33:10 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct documentation for wp_get_post_parent_id().

The $post parameter is required and does not have a default value.

Follow-up to [42397].

Props denisco.
See #53399.

File:
1 edited

Legend:

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

    r51327 r51425  
    74387438 * @since 3.1.0
    74397439 *
    7440  * @param int|WP_Post $post Post ID or post object. Defaults to global $post.
     7440 * @param int|WP_Post $post Post ID or post object.
    74417441 * @return int|false Post parent ID (which can be 0 if there is no parent),
    74427442 *                   or false if the post does not exist.
Note: See TracChangeset for help on using the changeset viewer.