Related products array_diff fix

This commit is contained in:
Mike Jolley 2011-11-17 19:07:25 +00:00
parent 35903e1fe0
commit 0a3dc7182f
2 changed files with 2 additions and 1 deletions

View File

@ -699,7 +699,7 @@ class woocommerce_product {
) )
)); ));
$related_posts = array_diff(array($this->id), $related_posts); $related_posts = array_diff( $related_posts, array($this->id) );
return $related_posts; return $related_posts;
} }

View File

@ -84,6 +84,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
= 1.2.3 - 17/11/2011 = = 1.2.3 - 17/11/2011 =
* Fix for sale price logic * Fix for sale price logic
* Related products array_diff fix
= 1.2.2 - 17/11/2011 = = 1.2.2 - 17/11/2011 =
* Minor fixes and optimisations * Minor fixes and optimisations