Changeset 5612 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/31/2007 03:44:18 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r5598 r5612 408 408 function get_object_terms($object_ids, $taxonomies, $args = array()) { 409 409 global $wpdb; 410 410 error_log("Objects: " . var_export($object_ids, true), 0); 411 411 if ( !is_array($taxonomies) ) 412 412 $taxonomies = array($taxonomies); … … 483 483 extract($args); 484 484 485 if ( $child_of ) { 486 $hierarchy = _get_term_hierarchy($taxonomies[0]); 487 if ( !isset($hierarchy[$child_of]) ) 488 return array(); 489 } 490 485 491 $key = md5( serialize( $args ) . serialize( $taxonomies ) ); 486 492 if ( $cache = wp_cache_get( 'get_terms', 'terms' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.