From 99ee3da2dfa1a1a80e68985686b2e39a10b13e2d Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 23 Feb 2010 23:32:17 +0000 Subject: [PATCH] Add .type-{post_type} to post_class. fixes #11609 git-svn-id: http://svn.automattic.com/wordpress/trunk@13350 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 82c7dd937..181f360b9 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())