From 325b5f67370003de905d000249b35e4421620620 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 27 Feb 2010 17:49:49 +0000 Subject: [PATCH] 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 --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**