[wp-trac] [WordPress Trac] #18804: Add "has-post-thumbnail" class to post_class() when there's a featured image

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 29 09:56:57 UTC 2011


#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:  Awaiting Review
Component:  General                 |     Version:
 Severity:  minor                   |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by GaryJ):

 +1 on this idea and patch (generally).

 As the existing post classes are NOT "is-sticky", "in-category" etc., then
 perhaps instead of "has-featured-image", it should just be "featured-
 image" (if that doesn't clash with any classes on or around the featured
 image itself)?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18804#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list