|
@@ 473-480 (lines=8) @@
|
| 470 |
|
$classes[] = 'status-' . $post->post_status; |
| 471 |
|
|
| 472 |
|
// Post Format |
| 473 |
|
if ( post_type_supports( $post->post_type, 'post-formats' ) ) { |
| 474 |
|
$post_format = get_post_format( $post->ID ); |
| 475 |
|
|
| 476 |
|
if ( $post_format && !is_wp_error($post_format) ) |
| 477 |
|
$classes[] = 'format-' . sanitize_html_class( $post_format ); |
| 478 |
|
else |
| 479 |
|
$classes[] = 'format-standard'; |
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
$post_password_required = post_password_required( $post->ID ); |
| 483 |
|
|
|
@@ 623-630 (lines=8) @@
|
| 620 |
|
$classes[] = 'postid-' . $post_id; |
| 621 |
|
|
| 622 |
|
// Post Format |
| 623 |
|
if ( post_type_supports( $post->post_type, 'post-formats' ) ) { |
| 624 |
|
$post_format = get_post_format( $post->ID ); |
| 625 |
|
|
| 626 |
|
if ( $post_format && !is_wp_error($post_format) ) |
| 627 |
|
$classes[] = 'single-format-' . sanitize_html_class( $post_format ); |
| 628 |
|
else |
| 629 |
|
$classes[] = 'single-format-standard'; |
| 630 |
|
} |
| 631 |
|
} |
| 632 |
|
} |
| 633 |
|
|