Ticket #14704: taxonomy.php.patch
File taxonomy.php.patch, 516 bytes (added by , 13 years ago) |
---|
-
wp-includes/taxonomy.php
diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 69f9c28..467287d 100644
a b function _get_term_hierarchy($taxonomy) { 2299 2299 return array(); 2300 2300 $children = get_option("{$taxonomy}_children"); 2301 2301 2302 if ( is_array($children) )2302 if ( is_array($children) && !empty($children) ) 2303 2303 return $children; 2304 2304 $children = array(); 2305 2305 $terms = get_terms($taxonomy, array('get' => 'all', 'orderby' => 'id', 'fields' => 'id=>parent'));