WordPress.org

Make WordPress Core

Changeset 16138


Ignore:
Timestamp:
11/01/10 18:05:33 (3 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r16100 r16138  
    328328    $classes[] = 'type-' . $post->post_type; 
    329329 
     330    // post requires password 
     331    if ( post_password_required($post->ID) ) 
     332        $classes[] = 'post-password-required'; 
     333     
    330334    // sticky for Sticky Posts 
    331335    if ( is_sticky($post->ID) && is_home() && !is_paged() ) 
    332336        $classes[] = 'sticky'; 
    333337 
    334     // hentry for hAtom compliace 
     338    // hentry for hAtom compliance 
    335339    $classes[] = 'hentry'; 
    336340 
Note: See TracChangeset for help on using the changeset viewer.