Changeset 34088 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 09/12/2015 08:33:07 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/link-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r34042 r34088 1493 1493 1494 1494 if ( $in_same_term || ! empty( $excluded_terms ) ) { 1495 $join = " INNER JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN $wpdb->term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";1496 $where = $wpdb->prepare( "AND tt.taxonomy = %s", $taxonomy );1497 1498 1495 if ( ! empty( $excluded_terms ) && ! is_array( $excluded_terms ) ) { 1499 1496 // back-compat, $excluded_terms used to be $excluded_terms with IDs separated by " and " … … 1509 1506 1510 1507 if ( $in_same_term ) { 1508 $join .= " INNER JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN $wpdb->term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id"; 1509 $where .= $wpdb->prepare( "AND tt.taxonomy = %s", $taxonomy ); 1510 1511 1511 if ( ! is_object_in_taxonomy( $post->post_type, $taxonomy ) ) 1512 1512 return '';
Note: See TracChangeset
for help on using the changeset viewer.