Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1853-1855 (lines=3) @@
1850
			die();
1851
		}
1852
1853
		if ( ! empty( $_GET['exclude'] ) ) {
1854
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1855
		}
1856
1857
		$found_products = array();
1858
@@ 1913-1915 (lines=3) @@
1910
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1911
		$exclude = array();
1912
1913
		if ( ! empty( $_GET['exclude'] ) ) {
1914
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1915
		}
1916
1917
		$args = array(
1918
			'post_type'      => array( 'product', 'product_variation' ),