diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 6ff765f6f..7df0dd0bd 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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); } /**