WordPress.org

Make WordPress Core

Changeset 16139


Ignore:
Timestamp:
11/01/10 18:07:31 (6 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

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

    r16138 r16139  
    327327    $classes[] = $post->post_type; 
    328328    $classes[] = 'type-' . $post->post_type; 
     329    $classes[] = 'status-' . $post->post_status; 
    329330 
    330331    // post requires password 
Note: See TracChangeset for help on using the changeset viewer.