Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1823-1825 (lines=3) @@
1820
			die();
1821
		}
1822
1823
		if ( ! empty( $_GET['exclude'] ) ) {
1824
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1825
		}
1826
1827
		$found_products = array();
1828
@@ 1883-1885 (lines=3) @@
1880
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1881
		$exclude = array();
1882
1883
		if ( ! empty( $_GET['exclude'] ) ) {
1884
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1885
		}
1886
1887
		$args = array(
1888
			'post_type'      => array( 'product', 'product_variation' ),