From ef2c4018761502d35e7d33bce84227a505c99477 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 23 Feb 2010 23:32:17 +0000 Subject: [PATCH] Add .type-{post_type} to post_class. fixes #11609 git-svn-id: https://develop.svn.wordpress.org/trunk@13350 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 82c7dd9372..181f360b90 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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())