Changeset 40979 for trunk/src/wp-includes/class-wp-term.php
- Timestamp:
- 07/01/2017 11:45:09 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term.php
r40973 r40979 137 137 // If there isn't a cached version, hit the database. 138 138 if ( ! $_term || ( $taxonomy && $taxonomy !== $_term->taxonomy ) ) { 139 // Any term found in the cache is not a match, so don't use it. 140 $_term = false; 141 139 142 // Grab all matching terms, in case any are shared between taxonomies. 140 143 $terms = $wpdb->get_results( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id = %d", $term_id ) );
Note: See TracChangeset
for help on using the changeset viewer.