[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
Wed Jan 22 23:31:08 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: Template | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------------------
Changes (by Frank Klein):
* keywords: has-patch needs-refresh => has-patch needs-testing
Comment:
Updated patch to include a check for a password protection. For the CSS
class name, I used 'post-thumbnail', which is in line with the other post
classes (so no 'has-' prefix) and corresponds to how the feature is
commonly named on the code side (vs 'featured-image').
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18804#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list