Changeset 5726 for trunk/wp-includes/link-template.php
- Timestamp:
- 06/19/2007 12:33:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r5716 r5726 361 361 if ( $in_same_cat ) { 362 362 $join = " INNER JOIN $wpdb->term_relationships AS tr ON $wpdb->posts.ID = tr.object_id "; 363 $cat_array = get_object_terms($post->ID, 'category', 'fields=tt_ids');363 $cat_array = wp_get_object_terms($post->ID, 'category', 'fields=tt_ids'); 364 364 $join .= ' AND (tr.term_taxonomy_id = ' . intval($cat_array[0]); 365 365 for ( $i = 1; $i < (count($cat_array)); $i++ ) { … … 394 394 if ( $in_same_cat ) { 395 395 $join = " INNER JOIN $wpdb->term_relationships AS tr ON $wpdb->posts.ID = tr.object_id "; 396 $cat_array = get_object_terms($post->ID, 'category', 'fields=tt_ids');396 $cat_array = wp_get_object_terms($post->ID, 'category', 'fields=tt_ids'); 397 397 $join .= ' AND (tr.term_taxonomy_id = ' . intval($cat_array[0]); 398 398 for ( $i = 1; $i < (count($cat_array)); $i++ ) {
Note: See TracChangeset
for help on using the changeset viewer.