Changeset 34881
- Timestamp:
- 10/06/2015 09:53:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r34843 r34881 452 452 } 453 453 454 // Post requires password 455 if ( post_password_required( $post->ID ) ) { 454 $post_password_required = post_password_required( $post->ID ); 455 456 // Post requires password. 457 if ( $post_password_required ) { 456 458 $classes[] = 'post-password-required'; 457 // Post thumbnails 458 } elseif ( ! is_attachment( $post ) && current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $post->ID ) ) { 459 } elseif ( ! empty( $post->post_password ) ) { 460 $classes[] = 'post-password-protected'; 461 } 462 463 // Post thumbnails. 464 if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $post->ID ) && ! is_attachment( $post ) && ! $post_password_required ) { 459 465 $classes[] = 'has-post-thumbnail'; 460 466 }
Note: See TracChangeset
for help on using the changeset viewer.