mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user