From 50d659f3800006152ad3219c1becb249b05c1e09 Mon Sep 17 00:00:00 2001 From: toddlahman Date: Sun, 2 Aug 2015 00:35:58 -0700 Subject: [PATCH] fix for array_filter() expects parameter 1 to be array, boolean given array_filter() expects parameter 1 to be array, boolean given /wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate- product.php(171) $exclude is evaluated as a boolean. --- includes/admin/class-wc-admin-duplicate-product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-duplicate-product.php b/includes/admin/class-wc-admin-duplicate-product.php index 550491ed270..d7e464a8911 100644 --- a/includes/admin/class-wc-admin-duplicate-product.php +++ b/includes/admin/class-wc-admin-duplicate-product.php @@ -168,7 +168,7 @@ class WC_Admin_Duplicate_Product { $this->duplicate_post_meta( $post->ID, $new_post_id ); // Copy the children (variations) - $exclude = array_filter( apply_filters( 'woocommerce_duplicate_product_exclude_children', false, $post ) ); + $exclude = apply_filters( 'woocommerce_duplicate_product_exclude_children', false ); if ( ! $exclude && ( $children_products = get_children( 'post_parent=' . $post->ID . '&post_type=product_variation' ) ) ) { foreach ( $children_products as $child ) {