Made abstract function useful

This commit is contained in:
Mike Jolley 2016-10-18 17:13:12 +01:00
parent 79f2d0eb8c
commit 745c31176d
1 changed files with 1 additions and 1 deletions

View File

@ -1396,7 +1396,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
* @return bool
*/
public function has_child() {
return false;
return 0 < count( $this->get_children() );
}
/**