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:
parent
e52d8a51bb
commit
85a7330154
|
@ -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