Ticket #6960: 6960.patch
| File 6960.patch, 0.8 kB (added by Sam_a, 5 months ago) |
|---|
-
wp-includes/taxonomy.php
old new 1057 1057 if ( count($taxonomies) > 1 ) { 1058 1058 foreach ( $taxonomies as $index => $taxonomy ) { 1059 1059 $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) ) { 1061 1061 unset($taxonomies[$index]); 1062 1062 $terms = array_merge($terms, wp_get_object_terms($object_ids, $taxonomy, array_merge($args, $t->args))); 1063 1063 } 1064 1064 } 1065 1065 } else { 1066 1066 $t = get_taxonomy($taxonomies[0]); 1067 if ( is _array($t->args) )1067 if ( isset($t->args) && is_array($t->args) ) 1068 1068 $args = array_merge($args, $t->args); 1069 1069 } 1070 1070
