Add the post status as a class so that a theme can easily style private posts differently. Fixes #15279.

git-svn-id: https://develop.svn.wordpress.org/trunk@16139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-11-01 18:07:31 +00:00
parent 3462e6af43
commit 0bb1061d57
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) )