You appear to be a bot. Output may be restricted
Description
Sanitize and validate input.
Usage
$array = oik_options_validate( $input );
Parameters
- $input
- ( array ) required – Accepts an array
Returns
array returns a sanitized array.Source
File name: oik/admin/oik-admin.phpLines:
1 to 11 of 11
function oik_options_validate( $input ) { $input = oik_draconian_validation( $input ); $customCSS = bw_array_get( $input, 'customCSS', null ); if ( $customCSS ) { $sanfile = sanitize_file_name( $customCSS ); // Should we check the sanitized file name with the original ? bw_create_file( get_stylesheet_directory(), $sanfile, plugin_dir_path( __FILE__ ) . 'custom.css' ); } $input = oik_set_latlng( $input ); return $input; }View on GitHub View on Trac