Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

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