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 , 15 years ago) |
---|
-
(a) link-template.php vs. (b) (current
a b 864 864 function get_adjacent_post($in_same_cat = false, $excluded_categories = '', $previous = true) { 865 865 global $post, $wpdb; 866 866 867 if ( empty($post) || !is_single() ||is_attachment() )867 if ( empty($post) || is_attachment() ) 868 868 return null; 869 869 870 870 $current_post_date = $post->post_date;