Changeset 16315 for trunk/wp-includes/post-template.php
- Timestamp:
- 11/12/2010 04:10:56 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r16313 r16315 328 328 $classes[] = 'type-' . $post->post_type; 329 329 $classes[] = 'status-' . $post->post_status; 330 if ( get_post_format( $post->ID ) ) 331 $classes[] = 'format-' . sanitize_html_class( get_post_format( $post->ID ) ); 330 331 // Post Format 332 $post_format = get_post_format( $post->ID ); 333 334 if ( $post_format && !is_wp_error($post_format) ) 335 $classes[] = 'format-' . sanitize_html_class( $post_format ); 332 336 else 333 337 $classes[] = 'format-default'; … … 425 429 $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id); 426 430 $classes[] = 'postid-' . $post_id; 427 if ( get_post_format( $post_id ) ) 428 $classes[] = 'single-format-' . sanitize_html_class( get_post_format( $post_id ) ); 431 432 // Post Format 433 $post_format = get_post_format( $post->ID ); 434 435 if ( $post_format && !is_wp_error($post_format) ) 436 $classes[] = 'single-format-' . sanitize_html_class( $post_format ); 429 437 else 430 438 $classes[] = 'single-format-default';
Note: See TracChangeset
for help on using the changeset viewer.