From a39f651a8564c1657c84dce34f66d91e7b7438ce Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 8 Sep 2008 18:56:13 +0000 Subject: [PATCH] show sticky class only when is_home. Props MtDewVirus. fixes #7712 git-svn-id: http://svn.automattic.com/wordpress/trunk@8847 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 0699fb9943..cdc821bbaa 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -313,7 +313,7 @@ function get_post_class( $class = '', $post_id = null ) { $classes[] = $post->post_type; // sticky for Sticky Posts - if ( is_sticky($post->ID) ) + if ( is_sticky($post->ID) && is_home()) $classes[] = 'sticky'; // hentry for hAtom compliace