show sticky class only when is_home. Props MtDewVirus. fixes #7712

git-svn-id: https://develop.svn.wordpress.org/trunk@8847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-09-08 18:56:13 +00:00
parent e994ef3899
commit 973fdc9b43
1 changed files with 1 additions and 1 deletions

View File

@ -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