Changeset 27429
- Timestamp:
- 03/06/2014 06:05:58 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r27360 r27429 305 305 * Retrieve the classes for the post div as an array. 306 306 * 307 * The class names are add are many. If the post is a sticky, then the 'sticky' 308 * class name. The class 'hentry' is always added to each post. For each 307 * The class names are many. If the post is a sticky, then the 'sticky' 308 * class name. The class 'hentry' is always added to each post. If the post has a 309 * post thumbnail, 'has-post-thumbnail' is added as a class. For each 309 310 * category, the class will be added with 'category-' with category slug is 310 311 * added. The tags are the same way as the categories with 'tag-' before the tag … … 343 344 } 344 345 345 // post requires password346 if ( post_password_required( $post->ID) )346 // Post requires password 347 if ( post_password_required( $post->ID ) ) { 347 348 $classes[] = 'post-password-required'; 349 // Post thumbnails 350 } elseif ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $post->ID ) ) { 351 $classes[] = 'has-post-thumbnail'; 352 } 348 353 349 354 // sticky for Sticky Posts
Note: See TracChangeset
for help on using the changeset viewer.