WordPress Version: 4.6
/**
* Display "sticky" CSS class, if a post is sticky.
*
* @since 2.7.0
* @deprecated 3.5.0 Use post_class()
* @see post_class()
*
* @param int $post_id An optional post ID.
*/
function sticky_class($post_id = null)
{
_deprecated_function(__FUNCTION__, '3.5.0', 'post_class()');
if (is_sticky($post_id)) {
echo ' sticky';
}
}