|
@@ 2991-3001 (lines=11) @@
|
| 2988 |
|
} |
| 2989 |
|
//now, just verify they didn't pass anything wack |
| 2990 |
|
foreach ( $query_params as $query_key => $query_value ) { |
| 2991 |
|
if ( ! in_array( $query_key, $this->_allowed_query_params, true ) ) { |
| 2992 |
|
throw new EE_Error( |
| 2993 |
|
sprintf( |
| 2994 |
|
__( |
| 2995 |
|
"You passed %s as a query parameter to %s, which is illegal! The allowed query parameters are %s", |
| 2996 |
|
'event_espresso' |
| 2997 |
|
), |
| 2998 |
|
$query_key, |
| 2999 |
|
get_class( $this ), |
| 3000 |
|
// print_r( $this->_allowed_query_params, TRUE ) |
| 3001 |
|
implode( ',', $this->_allowed_query_params ) |
| 3002 |
|
) |
| 3003 |
|
); |
| 3004 |
|
} |
|
@@ 3673-3675 (lines=3) @@
|
| 3670 |
|
if($field_obj instanceof EE_Model_Field_Base){ |
| 3671 |
|
return $wpdb->prepare($field_obj->get_wpdb_data_type(),$this->_prepare_value_for_use_in_db($value, $field_obj)); |
| 3672 |
|
}else{//$field_obj should really just be a data type |
| 3673 |
|
if( ! in_array($field_obj,$this->_valid_wpdb_data_types)){ |
| 3674 |
|
throw new EE_Error(sprintf(__("%s is not a valid wpdb datatype. Valid ones are %s", "event_espresso"),$field_obj,implode(",",$this->_valid_wpdb_data_types))); |
| 3675 |
|
} |
| 3676 |
|
return $wpdb->prepare($field_obj,$value); |
| 3677 |
|
} |
| 3678 |
|
} |