Pass post ID to post_class filter, even when calling post_class() without parameters in the loop. fixes #11878
git-svn-id: http://svn.automattic.com/wordpress/trunk@13462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1c87155b6d
commit
325b5f6737
|
@ -344,7 +344,7 @@ function get_post_class( $class = '', $post_id = null ) {
|
||||||
|
|
||||||
$classes = array_map('esc_attr', $classes);
|
$classes = array_map('esc_attr', $classes);
|
||||||
|
|
||||||
return apply_filters('post_class', $classes, $class, $post_id);
|
return apply_filters('post_class', $classes, $class, $post->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue