Don't add sticky class if is_paged(). Props iandstewart. fixes #13666

git-svn-id: https://develop.svn.wordpress.org/trunk@15088 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-06-01 15:03:49 +00:00
parent 87ea4f3f2c
commit e2407a19fc
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ function get_post_class( $class = '', $post_id = null ) {
$classes[] = 'type-' . $post->post_type;
// sticky for Sticky Posts
if ( is_sticky($post->ID) && is_home())
if ( is_sticky($post->ID) && is_home() && !is_paged() )
$classes[] = 'sticky';
// hentry for hAtom compliace