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

git-svn-id: https://develop.svn.wordpress.org/trunk@21253 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-07-09 21:10:59 +00:00
parent c418e6c76e
commit e256a654ba
2 changed files with 20 additions and 18 deletions
-14
View File
@@ -572,20 +572,6 @@ function post_password_required( $post = null ) {
return ! $wp_hasher->CheckPassword( $post->post_password, $hash );
}
/**
* Display "sticky" CSS class, if a post is sticky.
*
* @since 2.7.0
*
* @param int $post_id An optional post ID.
*/
function sticky_class( $post_id = null ) {
if ( !is_sticky($post_id) )
return;
echo " sticky";
}
/**
* Page Template Functions for usage in Themes
*