Related products array_diff fix
This commit is contained in:
parent
35903e1fe0
commit
0a3dc7182f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -84,6 +84,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
|
|||
|
||||
= 1.2.3 - 17/11/2011 =
|
||||
* Fix for sale price logic
|
||||
* Related products array_diff fix
|
||||
|
||||
= 1.2.2 - 17/11/2011 =
|
||||
* Minor fixes and optimisations
|
||||
|
|
Loading…
Reference in New Issue