mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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