Make WordPress Core

Ticket #10867: patch for not able to use next_post_link and previous_post_link on index page.diff

File patch for not able to use next_post_link and previous_post_link on index page.diff, 360 bytes (added by jobjorn, 15 years ago)

patch

  • (a) link-template.php vs. (b) (current

    a b  
    864864function get_adjacent_post($in_same_cat = false, $excluded_categories = '', $previous = true) {
    865865        global $post, $wpdb;
    866866
    867         if ( empty($post) || !is_single() || is_attachment() )
     867        if ( empty($post) || is_attachment() )
    868868                return null;
    869869
    870870        $current_post_date = $post->post_date;