Make WordPress Core

Ticket #6976: 6976_fix.patch

File 6976_fix.patch, 645 bytes (added by minddog, 18 years ago)
  • wp-includes/taxonomy.php

     
    10571057        if ( count($taxonomies) > 1 ) {
    10581058                foreach ( $taxonomies as $index => $taxonomy ) {
    10591059                        $t = get_taxonomy($taxonomy);
    1060                         if ( is_array($t->args) && $args != array_merge($args, $t->args) ) {
     1060                        if ( isset($t->args) && is_array($t->args) && $args != array_merge($args, $t->args) ) {
    10611061                                unset($taxonomies[$index]);
    10621062                                $terms = array_merge($terms, wp_get_object_terms($object_ids, $taxonomy, array_merge($args, $t->args)));
    10631063                        }