[wp-trac] [WordPress Trac] #18804: Add "has-post-thumbnail" class to post_class() when there's a featured image
WordPress Trac
noreply at wordpress.org
Thu Mar 6 06:03:03 UTC 2014
#18804: Add "has-post-thumbnail" class to post_class() when there's a featured
image
------------------------------+------------------------------
Reporter: danielbachhuber | Owner: danielbachhuber
Type: enhancement | Status: assigned
Priority: normal | Milestone: 3.9
Component: Post Thumbnails | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: template
------------------------------+------------------------------
Comment (by nacin):
We've had this schizophrenic naming of post thumbnails since 3.0 — they're
post thumbnails in the code, but featured images in the UI. Markup is what
I thought was a new frontier. But it turns out, the_post_thumbnail() (via
wp_get_attachment_image() or whatever) includes an attachment-$size class
in its markup, which works out to be "attachment-post-thumbnail". has-
post-thumbnail it is.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18804#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list