Add a post class if a password is required for the post to be displayed. See #13860 props zeo.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-11-01 18:05:33 +00:00
parent e08e1bf63b
commit e52d8a51bb
1 changed files with 5 additions and 1 deletions

View File

@ -327,11 +327,15 @@ function get_post_class( $class = '', $post_id = null ) {
$classes[] = $post->post_type;
$classes[] = 'type-' . $post->post_type;
// post requires password
if ( post_password_required($post->ID) )
$classes[] = 'post-password-required';
// sticky for Sticky Posts
if ( is_sticky($post->ID) && is_home() && !is_paged() )
$classes[] = 'sticky';
// hentry for hAtom compliace
// hentry for hAtom compliance
$classes[] = 'hentry';
// Categories