Changeset 16283
- Timestamp:
- 11/10/2010 10:07:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r16204 r16283 444 444 $classes[] = 'author'; 445 445 $classes[] = 'author-' . sanitize_html_class( $author->user_nicename , $author->ID ); 446 $classes[] = 'author-' . $author->ID; 446 447 } elseif ( is_category() ) { 447 448 $cat = $wp_query->get_queried_object(); 448 449 $classes[] = 'category'; 449 450 $classes[] = 'category-' . sanitize_html_class( $cat->slug, $cat->term_id ); 451 $classes[] = 'category-' . $cat->term_id; 450 452 } elseif ( is_tag() ) { 451 453 $tags = $wp_query->get_queried_object(); 452 454 $classes[] = 'tag'; 453 455 $classes[] = 'tag-' . sanitize_html_class( $tags->slug, $tags->term_id ); 456 $classes[] = 'tag-' . $tags->term_id; 454 457 } elseif ( is_tax() ) { 455 458 $term = $wp_query->get_queried_object(); 456 459 $classes[] = 'tax-' . sanitize_html_class( $term->taxonomy ); 457 460 $classes[] = 'term-' . sanitize_html_class( $term->slug, $term->term_id ); 461 $classes[] = 'term-' . $term->term_id; 458 462 } 459 463 } elseif ( is_page() ) {
Note: See TracChangeset
for help on using the changeset viewer.