Changeset 22472 for trunk/wp-includes/link-template.php
- Timestamp:
- 11/08/2012 09:16:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r22431 r22472 1134 1134 1135 1135 if ( $in_same_cat ) { 1136 if ( ! is_object_in_taxonomy( $post->post_type, 'category' ) ) 1137 return ''; 1136 1138 $cat_array = wp_get_object_terms($post->ID, 'category', array('fields' => 'ids')); 1139 if ( ! $cat_array || is_wp_error( $cat_array ) ) 1140 return ''; 1137 1141 $join .= " AND tt.taxonomy = 'category' AND tt.term_id IN (" . implode(',', $cat_array) . ")"; 1138 1142 }
Note: See TracChangeset
for help on using the changeset viewer.