Changeset 16200
- Timestamp:
- 11/05/2010 06:48:56 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r16139 r16200 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 ) ); 332 else 333 $classes[] = 'format-default'; 330 334 331 335 // post requires password … … 417 421 $classes[] = 'single-' . sanitize_html_class($post->post_type, $post_id); 418 422 $classes[] = 'postid-' . $post_id; 423 if ( get_post_format( $post_id ) ) 424 $classes[] = 'single-format-' . sanitize_html_class( get_post_format( $post_id ) ); 425 else 426 $classes[] = 'single-format-default'; 419 427 420 428 if ( is_attachment() ) {
Note: See TracChangeset
for help on using the changeset viewer.