Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1583-1585 (lines=3) @@
1580
1581
		$query .= " AND posts.post_type IN ('" . implode( "','", array_map( 'esc_sql', $post_types ) ) . "')";
1582
1583
		if ( ! empty( $_GET['exclude'] ) ) {
1584
			$query .= " AND posts.ID NOT IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['exclude'] ) ) ) . ")";
1585
		}
1586
1587
		if ( ! empty( $_GET['include'] ) ) {
1588
			$query .= " AND posts.ID IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['include'] ) ) ) . ")";
@@ 1587-1589 (lines=3) @@
1584
			$query .= " AND posts.ID NOT IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['exclude'] ) ) ) . ")";
1585
		}
1586
1587
		if ( ! empty( $_GET['include'] ) ) {
1588
			$query .= " AND posts.ID IN (" . implode( ',', array_map( 'intval', explode( ',', $_GET['include'] ) ) ) . ")";
1589
		}
1590
1591
		if ( ! empty( $_GET['limit'] ) ) {
1592
			$query .= " LIMIT " . intval( $_GET['limit'] );