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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-01 15:03:49 +00:00
parent 5c15c3a615
commit 98111ddf95
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