Pass post ID to post_class filter, even when calling post_class() without parameters in the loop. fixes #11878

git-svn-id: https://develop.svn.wordpress.org/trunk@13462 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-02-27 17:49:49 +00:00
parent 97da99aa6a
commit 7eea49d9d1
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ function get_post_class( $class = '', $post_id = null ) {
$classes = array_map('esc_attr', $classes);
return apply_filters('post_class', $classes, $class, $post_id);
return apply_filters('post_class', $classes, $class, $post->ID);
}
/**