Changeset 18651 for trunk/wp-includes/post-template.php
- Timestamp:
- 09/07/2011 08:10:42 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r18445 r18651 330 330 331 331 // Post Format 332 $post_format = get_post_format( $post->ID );333 334 332 if ( post_type_supports( $post->post_type, 'post-formats' ) ) { 333 $post_format = get_post_format( $post->ID ); 334 335 335 if ( $post_format && !is_wp_error($post_format) ) 336 336 $classes[] = 'format-' . sanitize_html_class( $post_format ); … … 433 433 434 434 // Post Format 435 $post_format = get_post_format( $post->ID ); 436 437 if ( $post_format && !is_wp_error($post_format) ) 438 $classes[] = 'single-format-' . sanitize_html_class( $post_format ); 439 else 440 $classes[] = 'single-format-standard'; 435 if ( post_type_supports( $post->post_type, 'post-formats' ) ) { 436 $post_format = get_post_format( $post->ID ); 437 438 if ( $post_format && !is_wp_error($post_format) ) 439 $classes[] = 'single-format-' . sanitize_html_class( $post_format ); 440 else 441 $classes[] = 'single-format-standard'; 442 } 441 443 442 444 if ( is_attachment() ) {
Note: See TracChangeset
for help on using the changeset viewer.