|
@@ 393-396 (lines=4) @@
|
| 390 |
|
|
| 391 |
|
$filter_array = array( '1 = 1' ); |
| 392 |
|
if ( ! $exclude_range ) { |
| 393 |
|
if ( null !== $range_from ) { |
| 394 |
|
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared |
| 395 |
|
$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} >= %d", array( intval( $range_from ) ) ); |
| 396 |
|
} |
| 397 |
|
if ( null !== $range_to ) { |
| 398 |
|
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared |
| 399 |
|
$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} <= %d", array( intval( $range_to ) ) ); |
|
@@ 397-400 (lines=4) @@
|
| 394 |
|
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared |
| 395 |
|
$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} >= %d", array( intval( $range_from ) ) ); |
| 396 |
|
} |
| 397 |
|
if ( null !== $range_to ) { |
| 398 |
|
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared |
| 399 |
|
$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} <= %d", array( intval( $range_to ) ) ); |
| 400 |
|
} |
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
/** |