Make WordPress Core

Ticket #14485: taxonomy.php.patch

File taxonomy.php.patch, 507 bytes (added by nunomorgadinho, 11 years ago)
  • wp-includes/taxonomy.php

     
    29172917                return array();
    29182918        $children = get_option("{$taxonomy}_children");
    29192919
    2920         if ( is_array($children) )
     2920        if ( is_array($children) && !empty($children) )
    29212921                return $children;
    29222922        $children = array();
    29232923        $terms = get_terms($taxonomy, array('get' => 'all', 'orderby' => 'id', 'fields' => 'id=>parent'));