Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1838-1840 (lines=3) @@
1835
			die();
1836
		}
1837
1838
		if ( ! empty( $_GET['exclude'] ) ) {
1839
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1840
		}
1841
1842
		$found_products = array();
1843
@@ 1898-1900 (lines=3) @@
1895
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1896
		$exclude = array();
1897
1898
		if ( ! empty( $_GET['exclude'] ) ) {
1899
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1900
		}
1901
1902
		$args = array(
1903
			'post_type'      => array( 'product', 'product_variation' ),