|
@@ 4365-4369 (lines=5) @@
|
| 4362 |
|
} |
| 4363 |
|
return $operator; |
| 4364 |
|
} |
| 4365 |
|
if (in_array($operator, $this->valid_like_style_operators()) && ! is_array($value)) { |
| 4366 |
|
//if the operator is 'LIKE', we want to allow percent signs (%) and not |
| 4367 |
|
//remove other junk. So just treat it as a string. |
| 4368 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
| 4369 |
|
} |
| 4370 |
|
if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
| 4371 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
| 4372 |
|
} |
|
@@ 4370-4372 (lines=3) @@
|
| 4367 |
|
//remove other junk. So just treat it as a string. |
| 4368 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
| 4369 |
|
} |
| 4370 |
|
if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
| 4371 |
|
return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
| 4372 |
|
} |
| 4373 |
|
if (in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
| 4374 |
|
throw new EE_Error( |
| 4375 |
|
sprintf( |