WordPress.org

Make WordPress Core

Ticket #12725: 12725.diff

File 12725.diff, 541 bytes (added by solarissmoke, 4 years ago)
  • wp-includes/link-template.php

     
    11041104 
    11051105        $current_post_date = $post->post_date; 
    11061106 
     1107        // reset $in_same_cat if the post type doesn't support categories 
     1108        if( ! is_object_in_taxonomy( $post->post_type, 'category' ) ) 
     1109                $in_same_cat = false; 
     1110         
    11071111        $join = ''; 
    11081112        $posts_in_ex_cats_sql = ''; 
    11091113        if ( $in_same_cat || ! empty( $excluded_categories ) ) {