From f592eb9e438a735b8986824b88576e65a33ca8a1 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 13 Aug 2008 21:59:52 +0000 Subject: [PATCH] Initialize classes array. see #7457 git-svn-id: http://svn.automattic.com/wordpress/trunk@8642 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 33e466dd5..fe3433d55 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -175,8 +175,11 @@ function has_excerpt( $id = 0 ) { function post_class( $class = '', $post_id = null ) { $post = get_post($post_id); + $classes = array(); + $classes[] = $post->post_type; + // sticky for Sticky Posts if ( is_sticky($post->ID) ) $classes[] = 'sticky';