[wp-trac] [WordPress Trac] #42797: Add missing parameter description in wp_get_post_parent_id function DocBlock
WordPress Trac
noreply at wordpress.org
Mon Dec 4 18:57:43 UTC 2017
#42797: Add missing parameter description in wp_get_post_parent_id function
DocBlock
-------------------------------+-----------------------------
Reporter: keesiemeijer | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: docs |
-------------------------------+-----------------------------
The `wp_get_post_parent_id` function accepts a post ID or a post object to
get the parent post id and it defaults to the global post object.
Because the parameter is called `$post_ID` It needs to be updated to
`$post`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42797>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list