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:
nacin 2010-02-23 23:32:17 +00:00
parent 1a6f4adb67
commit 99ee3da2df
1 changed files with 1 additions and 0 deletions

View File

@ -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())