Ticket #14485: taxonomy.php.patch
File taxonomy.php.patch, 507 bytes (added by , 11 years ago) |
---|
-
wp-includes/taxonomy.php
2917 2917 return array(); 2918 2918 $children = get_option("{$taxonomy}_children"); 2919 2919 2920 if ( is_array($children) )2920 if ( is_array($children) && !empty($children) ) 2921 2921 return $children; 2922 2922 $children = array(); 2923 2923 $terms = get_terms($taxonomy, array('get' => 'all', 'orderby' => 'id', 'fields' => 'id=>parent'));