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