[wp-trac] [WordPress Trac] #37741: Class passed in $attr parameter of get_the_post_thumbnail being ignored/not used
WordPress Trac
noreply at wordpress.org
Fri Aug 19 20:19:25 UTC 2016
#37741: Class passed in $attr parameter of get_the_post_thumbnail being ignored/not
used
-----------------------------+------------------------------
Reporter: brs14ku | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 4.5.3
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by brs14ku):
I believe this is because of it's use of wp_get_attachment_image which
appears to do nothing with 'class' element of the $attr array.
https://developer.wordpress.org/reference/functions/wp_get_attachment_image/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37741#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list