mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
show sticky class only when is_home. Props MtDewVirus. fixes #7712
git-svn-id: http://svn.automattic.com/wordpress/trunk@8847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dbe35378e6
commit
a39f651a85
@ -313,7 +313,7 @@ function get_post_class( $class = '', $post_id = null ) {
|
|||||||
$classes[] = $post->post_type;
|
$classes[] = $post->post_type;
|
||||||
|
|
||||||
// sticky for Sticky Posts
|
// sticky for Sticky Posts
|
||||||
if ( is_sticky($post->ID) )
|
if ( is_sticky($post->ID) && is_home())
|
||||||
$classes[] = 'sticky';
|
$classes[] = 'sticky';
|
||||||
|
|
||||||
// hentry for hAtom compliace
|
// hentry for hAtom compliace
|
||||||
|
Loading…
Reference in New Issue
Block a user