mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user