Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1875-1877 (lines=3) @@
1872
			die();
1873
		}
1874
1875
		if ( ! empty( $_GET['exclude'] ) ) {
1876
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1877
		}
1878
1879
		$found_products = array();
1880
@@ 1935-1937 (lines=3) @@
1932
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1933
		$exclude = array();
1934
1935
		if ( ! empty( $_GET['exclude'] ) ) {
1936
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1937
		}
1938
1939
		$args = array(
1940
			'post_type'      => array( 'product', 'product_variation' ),