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:
dd32 2010-09-24 11:58:21 +00:00
parent 164be642a4
commit 1380f38f95
1 changed files with 1 additions and 1 deletions

View File

@ -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';