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:
parent
3462e6af43
commit
0bb1061d57
|
@ -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) )
|
||||
|
|
Loading…
Reference in New Issue