[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
Mon Feb 10 18:14:36 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 SergeyBiryukov):

 Replying to [comment:12 Compute]:
 > Using {{{array_unique()}}} before the
 > {{{
 > return apply_filters('post_class', $classes, $class, $post->ID);
 > }}}
 >
 > Might be even better.

 Feel free to create a new ticket with that suggestion. `get_body_class()`
 would benefit from it too: [comment:ticket:25906:23].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18804#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list