|
@@ 284-286 (lines=3) @@
|
| 281 |
|
*/ |
| 282 |
|
|
| 283 |
|
$filter_array = array(); |
| 284 |
|
if ( $range_from !== null ) { |
| 285 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} > %d", array( intval( $range_from ) ) ); |
| 286 |
|
} |
| 287 |
|
if ( $range_to !== null ) { |
| 288 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} < %d", array( intval( $range_to ) ) ); |
| 289 |
|
} |
|
@@ 287-289 (lines=3) @@
|
| 284 |
|
if ( $range_from !== null ) { |
| 285 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} > %d", array( intval( $range_from ) ) ); |
| 286 |
|
} |
| 287 |
|
if ( $range_to !== null ) { |
| 288 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} < %d", array( intval( $range_to ) ) ); |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
/** |
| 292 |
|
* End prepare the ranges. |