Use the correct term_id field in get_body_class().
git-svn-id: http://svn.automattic.com/wordpress/trunk@15651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
164be642a4
commit
1380f38f95
|
@ -414,7 +414,7 @@ function get_body_class( $class = '' ) {
|
|||
} elseif ( is_category() ) {
|
||||
$cat = $wp_query->get_queried_object();
|
||||
$classes[] = 'category';
|
||||
$classes[] = 'category-' . sanitize_html_class( $cat->slug, $cat->cat_ID );
|
||||
$classes[] = 'category-' . sanitize_html_class( $cat->slug, $cat->term_id );
|
||||
} elseif ( is_tag() ) {
|
||||
$tags = $wp_query->get_queried_object();
|
||||
$classes[] = 'tag';
|
||||
|
|
Loading…
Reference in New Issue