|
@@ 181-183 (lines=3) @@
|
| 178 |
|
*/ |
| 179 |
|
|
| 180 |
|
$filter_array = array(); |
| 181 |
|
if ( $range_from !== null ) { |
| 182 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} > %d", array( intval( $range_from ) ) ); |
| 183 |
|
} |
| 184 |
|
if ( $range_to !== null ) { |
| 185 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} < %d", array( intval( $range_to ) ) ); |
| 186 |
|
} |
|
@@ 184-186 (lines=3) @@
|
| 181 |
|
if ( $range_from !== null ) { |
| 182 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} > %d", array( intval( $range_from ) ) ); |
| 183 |
|
} |
| 184 |
|
if ( $range_to !== null ) { |
| 185 |
|
$filter_array[] = $wpdb->prepare( "{$this->range_field} < %d", array( intval( $range_to ) ) ); |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
/** |
| 189 |
|
* End prepare the ranges |