From a59d598281b2b8f2c7c0083c858d34bc28bc3917 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 24 Sep 2010 11:58:21 +0000 Subject: [PATCH] Use the correct term_id field in get_body_class(). git-svn-id: https://develop.svn.wordpress.org/trunk@15651 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 7eb7a2fe2e..6d99eac918 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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';