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:
nacin 2010-02-27 17:49:49 +00:00
parent 1c87155b6d
commit 325b5f6737
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);
}
/**