Make WordPress Core

Ticket #21899: 21899.2.diff

File 21899.2.diff, 683 bytes (added by wonderboymusic, 9 years ago)
  • src/wp-includes/post-template.php

     
    450450                        $classes[] = 'format-standard';
    451451        }
    452452
     453        // Post is protected
     454        if ( ! empty( $post->post_password ) ) {
     455                $classes[] = 'visibility-protected';
     456        }
     457
     458        if ( 'private' === $post->post_status ) {
     459                $classes[] = 'visibility-private';
     460        }
     461
     462        if ( 'public' === $post->post_status ) {
     463                $classes[] = 'visibility-public';
     464        }
     465
    453466        // Post requires password
    454467        if ( post_password_required( $post->ID ) ) {
    455468                $classes[] = 'post-password-required';