Ticket #18804: postthumb.18804.1.patch
| File postthumb.18804.1.patch, 1.2 KB (added by , 14 years ago) |
|---|
-
wp-includes/post-template.php
301 301 /** 302 302 * Retrieve the classes for the post div as an array. 303 303 * 304 * The class names are add are many. If the post is a sticky, then the 'sticky' 305 * class name. The class 'hentry' is always added to each post. For each 304 * The class names are many. If the post is a sticky, then the 'sticky' 305 * class name. The class 'hentry' is always added to each post. If the post has a 306 * featured image, 'has-featured-image' is added as a class. For each 306 307 * category, the class will be added with 'category-' with category slug is 307 308 * added. The tags are the same way as the categories with 'tag-' before the tag 308 309 * slug. All classes are passed through the filter, 'post_class' with the list … … 337 338 else 338 339 $classes[] = 'format-standard'; 339 340 } 341 342 // Post Thumbnail, but we need to check for theme support before we call the function 343 if ( current_theme_supports( 'post-thumbnails' ) ) 344 if ( has_post_thumbnail( $post->ID ) ) 345 $classes[] = 'has-featured-image'; 340 346 341 347 // post requires password 342 348 if ( post_password_required($post->ID) )