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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user