Make WordPress Core


Ignore:
Timestamp:
08/13/2008 06:21:52 PM (17 years ago)
Author:
ryan
Message:

Add sticky_class() template tag. see #7457

File:
1 edited

Legend:

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

    r8636 r8637  
    764764 * @return bool
    765765 */
    766 function is_sticky($post_id) {
     766function is_sticky($post_id = null) {
     767    global $id;
     768
     769    $post_id = absint($post_id);
     770
     771    if ( !$post_id )
     772        $post_id = absint($id);
     773
    767774    $stickies = get_option('sticky_posts');
    768775
     
    775782    return false;
    776783}
     784
    777785
    778786/**
Note: See TracChangeset for help on using the changeset viewer.