[wp-trac] [WordPress Trac] #45658: get_post_thumbnail_id
WordPress Trac
noreply at wordpress.org
Sun Dec 16 13:45:14 UTC 2018
#45658: get_post_thumbnail_id
-----------------------------+------------------------------
Reporter: Tkama | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 5.0.1
Severity: normal | Resolution:
Keywords: | Focuses: docs
-----------------------------+------------------------------
Changes (by SergeyBiryukov):
* type: feature request => defect (bug)
* focuses: => docs
* component: General => Post Thumbnails
Old description:
> I have some questions for function [https://wp-kama.ru/filecode/wp-
> includes/post-thumbnail-template.php#L38-44 get_post_thumbnail_id()]:
>
> - why does it return a string instead of an integer?
> - why `@return string|int` in docs? It can't return an integer.
New description:
I have some questions for function [source:tags/5.0.1/src/wp-includes
/post-thumbnail-template.php?marks=38-44#L29 get_post_thumbnail_id()]:
- why does it return a string instead of an integer?
- why `@return string|int` in docs? It can't return an integer.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45658#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list