|
@@ 4230-4236 (lines=7) @@
|
| 4227 |
|
if (is_array($op_and_value) && isset($op_and_value[2]) && $op_and_value[2] == true) { |
| 4228 |
|
return $operator . SP . $this->_deduce_column_name_from_query_param($value); |
| 4229 |
|
} |
| 4230 |
|
if (in_array($operator, $this->_in_style_operators) && is_array($value)) { |
| 4231 |
|
//in this case, the value should be an array, or at least a comma-separated list |
| 4232 |
|
//it will need to handle a little differently |
| 4233 |
|
$cleaned_value = $this->_construct_in_value($value, $field_obj); |
| 4234 |
|
//note: $cleaned_value has already been run through $wpdb->prepare() |
| 4235 |
|
return $operator . SP . $cleaned_value; |
| 4236 |
|
} |
| 4237 |
|
if (in_array($operator, $this->_between_style_operators) && is_array($value)) { |
| 4238 |
|
//the value should be an array with count of two. |
| 4239 |
|
if (count($value) !== 2) { |
|
@@ 4273-4275 (lines=3) @@
|
| 4270 |
|
//remove other junk. So just treat it as a string. |
| 4271 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
| 4272 |
|
} |
| 4273 |
|
if (! in_array($operator, $this->_in_style_operators) && ! is_array($value)) { |
| 4274 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
| 4275 |
|
} |
| 4276 |
|
if (in_array($operator, $this->_in_style_operators) && ! is_array($value)) { |
| 4277 |
|
throw new EE_Error( |
| 4278 |
|
sprintf( |