Make WordPress Core


Ignore:
Timestamp:
07/09/2012 09:10:59 PM (14 years ago)
Author:
nacin
Message:

Deprecate sticky_class() in favor of post_class(). props solarissmoke, fixes #16675.

File:
1 edited

Legend:

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

    r21159 r21253  
    574574
    575575/**
    576  * Display "sticky" CSS class, if a post is sticky.
    577  *
    578  * @since 2.7.0
    579  *
    580  * @param int $post_id An optional post ID.
    581  */
    582 function sticky_class( $post_id = null ) {
    583         if ( !is_sticky($post_id) )
    584                 return;
    585 
    586         echo " sticky";
    587 }
    588 
    589 /**
    590576 * Page Template Functions for usage in Themes
    591577 *
Note: See TracChangeset for help on using the changeset viewer.