Ticket #21899: 21899.2.diff
File 21899.2.diff, 683 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/post-template.php
450 450 $classes[] = 'format-standard'; 451 451 } 452 452 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 453 466 // Post requires password 454 467 if ( post_password_required( $post->ID ) ) { 455 468 $classes[] = 'post-password-required';