add_magic_quotes( array $array )
Walks the array while sanitizing the contents.
Description Description
Parameters Parameters
- $array
-
(array) (Required) Array to walk while sanitizing contents.
Return Return
(array) Sanitized $array.
Source Source
File: wp-includes/functions.php
function add_magic_quotes( $array ) { foreach ( (array) $array as $k => $v ) { if ( is_array( $v ) ) { $array[ $k ] = add_magic_quotes( $v ); } else { $array[ $k ] = addslashes( $v ); } } return $array; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
0.71 | Introduced. |