Make WordPress Core

Changeset 8847


Ignore:
Timestamp:
09/08/2008 06:56:13 PM (18 years ago)
Author:
ryan
Message:

show sticky class only when is_home. Props MtDewVirus. fixes #7712

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r8809 r8847  
    314314
    315315    // sticky for Sticky Posts
    316     if ( is_sticky($post->ID) )
     316    if ( is_sticky($post->ID) && is_home())
    317317        $classes[] = 'sticky';
    318318
Note: See TracChangeset for help on using the changeset viewer.