|
@@ 51-58 (lines=8) @@
|
| 48 |
|
|
| 49 |
|
$output = (object) $output; |
| 50 |
|
} |
| 51 |
|
elseif ( is_array( $input ) ) { |
| 52 |
|
$n_params = $params; |
| 53 |
|
$n_params[ 'nested' ] = true; |
| 54 |
|
|
| 55 |
|
foreach ( $input as $key => $val ) { |
| 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 |
|
@@ 230-237 (lines=8) @@
|
| 227 |
|
|
| 228 |
|
$output = (object) $output; |
| 229 |
|
} |
| 230 |
|
elseif ( is_array( $input ) ) { |
| 231 |
|
$n_params = (array) $params; |
| 232 |
|
$n_params[ 'nested' ] = true; |
| 233 |
|
|
| 234 |
|
foreach ( $input as $key => $val ) { |
| 235 |
|
$output[ pods_unsanitize( $key ) ] = pods_unsanitize( $val, $n_params ); |
| 236 |
|
} |
| 237 |
|
} |
| 238 |
|
else { |
| 239 |
|
// @todo Figure out what to do to unescape mysql_real_escape_string |
| 240 |
|
if ( pods_version_check( 'wp', '3.6' ) ) { |