Add .type-{post_type} to post_class. fixes #11609
git-svn-id: http://svn.automattic.com/wordpress/trunk@13350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1a6f4adb67
commit
99ee3da2df
|
@ -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