Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1647-1649 (lines=3) @@
1644
			die();
1645
		}
1646
1647
		if ( ! empty( $_GET['exclude'] ) ) {
1648
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1649
		}
1650
1651
		$found_products = array();
1652
@@ 1707-1709 (lines=3) @@
1704
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1705
		$exclude = array();
1706
1707
		if ( ! empty( $_GET['exclude'] ) ) {
1708
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1709
		}
1710
1711
		$args = array(
1712
			'post_type'      => array( 'product', 'product_variation' ),