|
@@ 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'] ); |