Remove unused variable
This commit is contained in:
parent
b0902e56d8
commit
8e87ce7e57
|
@ -61,8 +61,6 @@ class WC_Product_Grouped extends WC_Product {
|
|||
* @return bool
|
||||
*/
|
||||
public function is_on_sale( $context = 'view' ) {
|
||||
global $wpdb;
|
||||
|
||||
$children = array_filter( array_map( 'wc_get_product', $this->get_children( $context ) ), 'wc_products_array_filter_visible_grouped' );
|
||||
$on_sale = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue