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:
Andrew Nacin 2010-02-23 23:32:17 +00:00
parent 4f3ffedba8
commit ef2c401876
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())