Made abstract function useful
This commit is contained in:
parent
2fb0dd50d5
commit
c2a67803fc
|
@ -1388,7 +1388,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
* @return bool
|
||||
*/
|
||||
public function has_child() {
|
||||
return false;
|
||||
return 0 < count( $this->get_children() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue