From c2a67803fc7c4affda756482f7813598fd8be313 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 18 Oct 2016 17:13:12 +0100 Subject: [PATCH] Made abstract function useful --- includes/abstracts/abstract-wc-product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-product.php b/includes/abstracts/abstract-wc-product.php index cd13baca14f..c33bdcb8a10 100644 --- a/includes/abstracts/abstract-wc-product.php +++ b/includes/abstracts/abstract-wc-product.php @@ -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() ); } /**