Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1820-1822 (lines=3) @@
1817
1818
		$query .= " AND posts.post_type IN ('" . implode( "','", array_map( 'esc_sql', $post_types ) ) . "')";
1819
1820
		if ( ! empty( $_GET['exclude'] ) ) {
1821
			$query .= " AND posts.ID NOT IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['exclude'] ) ) ) . ")";
1822
		}
1823
1824
		if ( ! empty( $_GET['include'] ) ) {
1825
			$query .= " AND posts.ID IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['include'] ) ) ) . ")";
@@ 1824-1826 (lines=3) @@
1821
			$query .= " AND posts.ID NOT IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['exclude'] ) ) ) . ")";
1822
		}
1823
1824
		if ( ! empty( $_GET['include'] ) ) {
1825
			$query .= " AND posts.ID IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['include'] ) ) ) . ")";
1826
		}
1827
1828
		if ( ! empty( $_GET['limit'] ) ) {
1829
			$query .= " LIMIT " . intval( $_GET['limit'] );