|
@@ 59-66 (lines=8) @@
|
| 56 |
|
$output[ pods_sanitize( $key ) ] = pods_sanitize( $val, $n_params ); |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
elseif ( !empty( $params[ 'type' ] ) && false !== strpos( $params[ 'type' ], '%' ) ) { |
| 60 |
|
/** |
| 61 |
|
* @var $wpdb wpdb |
| 62 |
|
*/ |
| 63 |
|
global $wpdb; |
| 64 |
|
|
| 65 |
|
$output = $wpdb->prepare( $params[ 'type' ], $output ); |
| 66 |
|
} |
| 67 |
|
// @todo Switch this full over to esc_sql once we get sanitization sane again in PodsAPI so we *don't* have to unsanitize in various places |
| 68 |
|
elseif ( function_exists( 'wp_slash' ) ) { |
| 69 |
|
$output = wp_slash( $input ); |
|
@@ 173-180 (lines=8) @@
|
| 170 |
|
$output[ $key ] = pods_slash( $val, $params ); |
| 171 |
|
} |
| 172 |
|
} |
| 173 |
|
elseif ( !empty( $params[ 'type' ] ) && false !== strpos( $params[ 'type' ], '%' ) ) { |
| 174 |
|
/** |
| 175 |
|
* @var $wpdb wpdb |
| 176 |
|
*/ |
| 177 |
|
global $wpdb; |
| 178 |
|
|
| 179 |
|
$output = $wpdb->prepare( $params[ 'type' ], $output ); |
| 180 |
|
} |
| 181 |
|
elseif ( function_exists( 'wp_slash' ) ) { |
| 182 |
|
$output = wp_slash( $input ); |
| 183 |
|
} |