Changeset 17292
- Timestamp:
- 01/13/2011 11:02:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r16834 r17292 332 332 $post_format = get_post_format( $post->ID ); 333 333 334 if ( $post_format && !is_wp_error($post_format) ) 335 $classes[] = 'format-' . sanitize_html_class( $post_format ); 336 else 337 $classes[] = 'format-standard'; 334 if ( post_type_supports( $post->post_type, 'post-formats' ) ) { 335 if ( $post_format && !is_wp_error($post_format) ) 336 $classes[] = 'format-' . sanitize_html_class( $post_format ); 337 else 338 $classes[] = 'format-standard'; 339 } 338 340 339 341 // post requires password
Note: See TracChangeset
for help on using the changeset viewer.