[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:17:31 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           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Class passed in the $attr parameter not getting applied.
 {{{#!php
 <?php
 echo get_the_post_thumbnail( absint( $post_data->ID ), 'full',  array(
 'class' => 'card__image' ) );
 ?>
 }}}

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


More information about the wp-trac mailing list