Changeset 13733 for trunk/wp-includes/query.php
- Timestamp:
- 03/17/2010 04:27:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r13725 r13733 225 225 * 226 226 * If no taxonomy argument is set, returns true if any taxonomy is queried. 227 * If the taxonomy argument is passed but no term argument, returns true 227 * If the taxonomy argument is passed but no term argument, returns true 228 228 * if the taxonomy or taxonomies in the argument are being queried. 229 * If both taxonomy and term arguments are passed, returns true 229 * If both taxonomy and term arguments are passed, returns true 230 230 * if the current query is for a term contained in the terms argument 231 231 * which has a taxonomy contained in the taxonomy argument. … … 254 254 return isset($queried_object->taxonomy) && count( $tax_array ) && in_array($queried_object->taxonomy, $tax_array); 255 255 256 return isset($queried_object->term_id) && 256 return isset($queried_object->term_id) && 257 257 count(array_intersect( 258 array($queried_object->term_id, $queried_object->name, $queried_object->slug), 258 array($queried_object->term_id, $queried_object->name, $queried_object->slug), 259 259 $term_array 260 260 ));
Note: See TracChangeset
for help on using the changeset viewer.