@@ 4216-4222 (lines=7) @@ | ||
4213 | if (is_array($op_and_value) && isset($op_and_value[2]) && $op_and_value[2] == true) { |
|
4214 | return $operator . SP . $this->_deduce_column_name_from_query_param($value); |
|
4215 | } |
|
4216 | if (in_array($operator, $this->_in_style_operators) && is_array($value)) { |
|
4217 | //in this case, the value should be an array, or at least a comma-separated list |
|
4218 | //it will need to handle a little differently |
|
4219 | $cleaned_value = $this->_construct_in_value($value, $field_obj); |
|
4220 | //note: $cleaned_value has already been run through $wpdb->prepare() |
|
4221 | return $operator . SP . $cleaned_value; |
|
4222 | } |
|
4223 | if (in_array($operator, $this->_between_style_operators) && is_array($value)) { |
|
4224 | //the value should be an array with count of two. |
|
4225 | if (count($value) !== 2) { |
|
@@ 4259-4261 (lines=3) @@ | ||
4256 | //remove other junk. So just treat it as a string. |
|
4257 | return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
|
4258 | } |
|
4259 | if (! in_array($operator, $this->_in_style_operators) && ! is_array($value)) { |
|
4260 | return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
|
4261 | } |
|
4262 | if (in_array($operator, $this->_in_style_operators) && ! is_array($value)) { |
|
4263 | throw new EE_Error( |
|
4264 | sprintf( |