Make WordPress Core

Ticket #15959: get_adjacent_post.2.patch

File get_adjacent_post.2.patch, 523 bytes (added by markauk, 13 years ago)
  • wp-includes/link-template.php

     
    11031103        if ( empty( $post ) )
    11041104                return null;
    11051105
     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
    11061113        $current_post_date = $post->post_date;
    11071114
    11081115        $join = '';