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
This commit is contained in:
westi 2010-11-01 18:07:31 +00:00
parent e52d8a51bb
commit 85a7330154
1 changed files with 1 additions and 0 deletions

View File

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