From 85a73301542135a86d75f3b097f7cb873e35af8d Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 1 Nov 2010 18:07:31 +0000 Subject: [PATCH] Add the post status as a class so that a theme can easily style private posts differently. Fixes #15279. git-svn-id: http://svn.automattic.com/wordpress/trunk@16139 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 256dd1cc4..d75c680be 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -326,6 +326,7 @@ function get_post_class( $class = '', $post_id = null ) { $classes[] = 'post-' . $post->ID; $classes[] = $post->post_type; $classes[] = 'type-' . $post->post_type; + $classes[] = 'status-' . $post->post_status; // post requires password if ( post_password_required($post->ID) )