[wp-trac] [WordPress Trac] #12235: Display caption with the_post_thumbnail
WordPress Trac
noreply at wordpress.org
Wed Jun 29 17:18:59 UTC 2016
#12235: Display caption with the_post_thumbnail
---------------------------------------------+-----------------------
Reporter: hd-J | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.6
Component: Post Thumbnails | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------
Comment (by joemcgill):
[attachment:12235.7.diff] includes some additional cleanup. Since we are
using `get_the_post_thumbnail_caption()` to retrieve the caption string,
we should treat it like `get_the_excerpt()` and always return a string
instead of `false`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12235#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list