Don't use deprecated category properties. Props filosofo. Fixes #15408

git-svn-id: http://svn.automattic.com/wordpress/trunk@16331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu
2010-11-12 18:40:51 +00:00
parent 5a6716b78a
commit 18116f12c6
3 changed files with 9 additions and 9 deletions

View File

@@ -352,7 +352,7 @@ function get_post_class( $class = '', $post_id = null ) {
foreach ( (array) get_the_category($post->ID) as $cat ) {
if ( empty($cat->slug ) )
continue;
$classes[] = 'category-' . sanitize_html_class($cat->slug, $cat->cat_ID);
$classes[] = 'category-' . sanitize_html_class($cat->slug, $cat->term_id);
}
}