Ticket #35164: post-template.diff
File post-template.diff, 749 bytes (added by , 7 years ago) |
---|
-
post-template.php
473 473 $classes[] = 'post-password-protected'; 474 474 } 475 475 476 // Main post 477 if( is_main_query() ) { 478 $classes[] = 'main-post'; 479 } 480 476 481 // Post thumbnails. 477 482 if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $post->ID ) && ! is_attachment( $post ) && ! $post_password_required ) { 478 483 $classes[] = 'has-post-thumbnail'; … … 578 583 $classes[] = 'attachment'; 579 584 if ( is_404() ) 580 585 $classes[] = 'error404'; 586 if( is_singular() ) { 587 $classes[] = 'singular'; 588 } 581 589 582 590 if ( is_single() ) { 583 591 $post_id = $wp_query->get_queried_object_id();