@@ 4255-4259 (lines=5) @@ | ||
4252 | } |
|
4253 | return $operator; |
|
4254 | } |
|
4255 | if (in_array($operator, $this->valid_like_style_operators()) && ! is_array($value)) { |
|
4256 | //if the operator is 'LIKE', we want to allow percent signs (%) and not |
|
4257 | //remove other junk. So just treat it as a string. |
|
4258 | return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
|
4259 | } |
|
4260 | if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
|
4261 | return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
|
4262 | } |
|
@@ 4260-4262 (lines=3) @@ | ||
4257 | //remove other junk. So just treat it as a string. |
|
4258 | return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s'); |
|
4259 | } |
|
4260 | if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
|
4261 | return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj); |
|
4262 | } |
|
4263 | if (in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) { |
|
4264 | throw new EE_Error( |
|
4265 | sprintf( |