Ticket #15959: get_adjacent_post.2.patch
File get_adjacent_post.2.patch, 523 bytes (added by , 14 years ago) |
---|
-
wp-includes/link-template.php
1103 1103 if ( empty( $post ) ) 1104 1104 return null; 1105 1105 1106 $post_category_count = count( wp_get_post_categories( $post->ID ) ); 1107 if ( $in_same_cat && ! $post_category_count ) 1108 return null; 1109 1110 if ( !$post_category_count ) 1111 $in_same_cat = false; 1112 1106 1113 $current_post_date = $post->post_date; 1107 1114 1108 1115 $join = '';