Ticket #11609: get_post_class.diff
| File get_post_class.diff, 510 bytes (added by Frumph, 3 years ago) |
|---|
-
.php
old new 311 311 return $classes; 312 312 313 313 $classes[] = 'post-' . $post->ID; 314 $classes[] = $post->post_type; 314 315 if ($post->post_type == 'post') { 316 $classes[] = 'post'; 317 } else { 318 $classes[] = 'post-' . $post->post_type; 319 } 315 320 316 321 // sticky for Sticky Posts 317 322 if ( is_sticky($post->ID) && is_home())
