You appear to be a bot. Output may be restricted
Description
Sanitize values that come in as arrays
Usage
$array = EDD_Register_Meta::sanitize_array( $value );
Parameters
- $value
- ( array ) optional – The value passed into the meta.
Returns
array The sanitized value.
Source
File name: easy-digital-downloads/includes/class-edd-register-meta.php
Lines:
1 to 23 of 23
public function sanitize_array( $value = array() ) { if ( ! is_array( $value ) ) { if ( is_object( $value ) ) { $value = (array) $value; } if ( is_serialized( $value ) ) { preg_match( '/[oO]\s*:\s*\d+\s*:\s*"\s*(?!(?i)(stdClass))/', $value, $matches ); if ( ! empty( $matches ) ) { return false; } $value = (array) maybe_unserialize( $value ); } } return $value; }