[wp-trac] [WordPress Trac] #40096: get_post_thumbnail_id should return int
WordPress Trac
noreply at wordpress.org
Sun Feb 2 03:06:44 UTC 2020
#40096: get_post_thumbnail_id should return int
-----------------------------+-----------------------------
Reporter: 0v3rth3d4wn | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.4
Component: Post Thumbnails | Version: 2.9
Severity: normal | Resolution: fixed
Keywords: | Focuses: docs
-----------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"47160" 47160]:
{{{
#!CommitTicketReference repository="" revision="47160"
Post Thumbnails: Make sure `get_post_thumbnail_id()` returns an integer,
to match the documented return value.
This makes the function more consistent with `get_the_ID()` or
`wp_get_post_parent_id()`, both returning an integer.
Props 0v3rth3d4wn.
Fixes #40096.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40096#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list