[wp-trac] [WordPress Trac] #45658: get_post_thumbnail_id

WordPress Trac noreply at wordpress.org
Sat Dec 15 16:42:01 UTC 2018


#45658: get_post_thumbnail_id
-----------------------------+-----------------------------
 Reporter:  Tkama            |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  5.0.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45658>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list