Make WordPress Core

Ticket #16051: taxonomy-childs.patch

File taxonomy-childs.patch, 660 bytes (added by acsnaterse, 13 years ago)

Added statement for checking whether {$taxonomy}_children option is empty

  • wp-includes/taxonomy.php

    Property changes on: .
    ___________________________________________________________________
    Added: svn:ignore
       + wp-config.php
    .htaccess
    sql_log.txt
    
    
     
    26232623                return array();
    26242624        $children = get_option("{$taxonomy}_children");
    26252625
    2626         if ( is_array($children) )
     2626        if ( is_array($children) && !empty($children) )
    26272627                return $children;
    26282628        $children = array();
    26292629        $terms = get_terms($taxonomy, array('get' => 'all', 'orderby' => 'id', 'fields' => 'id=>parent'));