|
@@ 4241-4245 (lines=5) @@
|
| 4238 |
|
} |
| 4239 |
|
return $operator; |
| 4240 |
|
} |
| 4241 |
|
if (in_array($operator, $this->valid_like_style_operators()) && ! is_array($value)) { |
| 4242 |
|
//if the operator is 'LIKE', we want to allow percent signs (%) and not |
| 4243 |
|
//remove other junk. So just treat it as a string. |
| 4244 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
| 4245 |
|
} |
| 4246 |
|
if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
| 4247 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
| 4248 |
|
} |
|
@@ 4246-4248 (lines=3) @@
|
| 4243 |
|
//remove other junk. So just treat it as a string. |
| 4244 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
| 4245 |
|
} |
| 4246 |
|
if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
| 4247 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
| 4248 |
|
} |
| 4249 |
|
if (in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
| 4250 |
|
throw new EE_Error( |
| 4251 |
|
sprintf( |