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:
parent
87ea4f3f2c
commit
e2407a19fc
|
@ -318,7 +318,7 @@ function get_post_class( $class = '', $post_id = null ) {
|
||||||
$classes[] = 'type-' . $post->post_type;
|
$classes[] = 'type-' . $post->post_type;
|
||||||
|
|
||||||
// sticky for Sticky Posts
|
// sticky for Sticky Posts
|
||||||
if ( is_sticky($post->ID) && is_home())
|
if ( is_sticky($post->ID) && is_home() && !is_paged() )
|
||||||
$classes[] = 'sticky';
|
$classes[] = 'sticky';
|
||||||
|
|
||||||
// hentry for hAtom compliace
|
// hentry for hAtom compliace
|
||||||
|
|
Loading…
Reference in New Issue