Ticket #9109: get-terms-reference.diff
File get-terms-reference.diff, 571 bytes (added by , 16 years ago) |
---|
-
wp-includes/taxonomy.php
601 601 } 602 602 603 603 foreach ( (array) $taxonomies as $taxonomy ) { 604 if ( ! is_taxonomy($taxonomy) ) 605 return new WP_Error('invalid_taxonomy', __('Invalid Taxonomy')); 604 if ( ! is_taxonomy($taxonomy) ) { 605 $error = & new WP_Error('invalid_taxonomy', __('Invalid Taxonomy')); 606 return $error; 607 } 606 608 } 607 609 608 610 $in_taxonomies = "'" . implode("', '", $taxonomies) . "'";