|
@@ 344-346 (lines=3) @@
|
| 341 |
|
*/ |
| 342 |
|
|
| 343 |
|
$filter_array = array(); |
| 344 |
|
if ( null !== $range_from ) { |
| 345 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} >= %d", array( intval( $range_from ) ) ); |
| 346 |
|
} |
| 347 |
|
if ( null != $range_to ) { |
| 348 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} <= %d", array( intval( $range_to ) ) ); |
| 349 |
|
} |
|
@@ 347-349 (lines=3) @@
|
| 344 |
|
if ( null !== $range_from ) { |
| 345 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} >= %d", array( intval( $range_from ) ) ); |
| 346 |
|
} |
| 347 |
|
if ( null != $range_to ) { |
| 348 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} <= %d", array( intval( $range_to ) ) ); |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
/** |
| 352 |
|
* End prepare the ranges. |