|
@@ 3499-3509 (lines=11) @@
|
| 3496 |
|
} |
| 3497 |
|
//now, just verify they didn't pass anything wack |
| 3498 |
|
foreach ($query_params as $query_key => $query_value) { |
| 3499 |
|
if (! in_array($query_key, $this->_allowed_query_params, true)) { |
| 3500 |
|
throw new EE_Error( |
| 3501 |
|
sprintf( |
| 3502 |
|
__( |
| 3503 |
|
"You passed %s as a query parameter to %s, which is illegal! The allowed query parameters are %s", |
| 3504 |
|
'event_espresso' |
| 3505 |
|
), |
| 3506 |
|
$query_key, |
| 3507 |
|
get_class($this), |
| 3508 |
|
// print_r( $this->_allowed_query_params, TRUE ) |
| 3509 |
|
implode(',', $this->_allowed_query_params) |
| 3510 |
|
) |
| 3511 |
|
); |
| 3512 |
|
} |
|
@@ 4361-4363 (lines=3) @@
|
| 4358 |
|
return $wpdb->prepare($field_obj->get_wpdb_data_type(), |
| 4359 |
|
$this->_prepare_value_for_use_in_db($value, $field_obj)); |
| 4360 |
|
} //$field_obj should really just be a data type |
| 4361 |
|
if (! in_array($field_obj, $this->_valid_wpdb_data_types)) { |
| 4362 |
|
throw new EE_Error( |
| 4363 |
|
sprintf( |
| 4364 |
|
__("%s is not a valid wpdb datatype. Valid ones are %s", "event_espresso"), |
| 4365 |
|
$field_obj, implode(",", $this->_valid_wpdb_data_types) |
| 4366 |
|
) |