|
@@ 295-297 (lines=3) @@
|
| 292 |
|
*/ |
| 293 |
|
|
| 294 |
|
$filter_array = array(); |
| 295 |
|
if ( $range_from !== null ) { |
| 296 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} >= %d", array( intval( $range_from ) ) ); |
| 297 |
|
} |
| 298 |
|
if ( $range_to !== null ) { |
| 299 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} <= %d", array( intval( $range_to ) ) ); |
| 300 |
|
} |
|
@@ 298-300 (lines=3) @@
|
| 295 |
|
if ( $range_from !== null ) { |
| 296 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} >= %d", array( intval( $range_from ) ) ); |
| 297 |
|
} |
| 298 |
|
if ( $range_to !== null ) { |
| 299 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} <= %d", array( intval( $range_to ) ) ); |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
/** |
| 303 |
|
* End prepare the ranges. |