Merge pull request #1696 from phillbrown/patch-1

woocommerce_get_product_terms bypasses caching
This commit is contained in:
Mike Jolley 2012-11-07 13:24:46 -08:00
commit 37013ee9c2
1 changed files with 1 additions and 1 deletions

View File

@ -1171,7 +1171,7 @@ function woocommerce_get_product_terms( $object_id, $taxonomy, $fields = 'all' )
return array();
$terms = array();
$object_terms = wp_get_object_terms( $object_id, $taxonomy );
$object_terms = get_the_terms( $object_id, $taxonomy );
$all_terms = array_flip( get_terms( $taxonomy, array( 'menu_order' => 'ASC', 'fields' => 'ids' ) ) );
switch ( $fields ) {