[wp-trac] [WordPress Trac] #33068: get_post() returning current object if 0
WordPress Trac
noreply at wordpress.org
Tue Feb 9 13:43:13 UTC 2021
#33068: get_post() returning current object if 0
-------------------------------+-----------------------
Reporter: Rahe | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.7
Component: Posts, Post Types | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: docs
-------------------------------+-----------------------
Changes (by johnbillion):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"50266" 50266]:
{{{
#!CommitTicketReference repository="" revision="50266"
Posts, Post Types: Clarify the documentation about the return value of
`get_post()` when a falsey value is passed.
Props Rahe, juliobox, peterwilsoncc, hellofromTonya, audrasjb
Fixes #33068
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33068#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list