Add .type-{post_type} to post_class. fixes #11609
git-svn-id: https://develop.svn.wordpress.org/trunk@13350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4f3ffedba8
commit
ef2c401876
@ -313,6 +313,7 @@ function get_post_class( $class = '', $post_id = null ) {
|
||||
|
||||
$classes[] = 'post-' . $post->ID;
|
||||
$classes[] = $post->post_type;
|
||||
$classes[] = 'type-' . $post->post_type;
|
||||
|
||||
// sticky for Sticky Posts
|
||||
if ( is_sticky($post->ID) && is_home())
|
||||
|
Loading…
Reference in New Issue
Block a user