From e2407a19fc5ac6576bb07a2884f948b7c566c3d8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 1 Jun 2010 15:03:49 +0000 Subject: [PATCH] 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 --- 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 a459df0bdf..6230106bab 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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