Changeset 37544 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 05/23/2016 07:01:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r37501 r37544 416 416 417 417 /** 418 * Retrieve the classes for the post div as an array.418 * Retrieves the classes for the post div as an array. 419 419 * 420 420 * The class names are many. If the post is a sticky, then the 'sticky' … … 422 422 * post thumbnail, 'has-post-thumbnail' is added as a class. For each taxonomy that 423 423 * the post belongs to, a class will be added of the format '{$taxonomy}-{$slug}' - 424 * eg 'category-foo' or 'my_custom_taxonomy-bar'. The 'post_tag' taxonomy is a special 424 * eg 'category-foo' or 'my_custom_taxonomy-bar'. 425 * 426 * The 'post_tag' taxonomy is a special 425 427 * case; the class has the 'tag-' prefix instead of 'post_tag-'. All classes are 426 * passed through the filter, 'post_class'with the list of classes, followed by428 * passed through the filter, {@see 'post_class'}, with the list of classes, followed by 427 429 * $class parameter value, with the post ID as the last parameter. 428 430 *
Note: See TracChangeset
for help on using the changeset viewer.