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

git-svn-id: https://develop.svn.wordpress.org/trunk@16331 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-12 18:40:51 +00:00
parent d653f78616
commit 9f86bb7104
3 changed files with 9 additions and 9 deletions
+1 -1
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);
}
}