関数 add_magic_quotes()
2014/11/30
定義ファイル :/blog/wp-includes/functions.php 5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | /** * Walks the array while sanitizing the contents. * * @since 0.71 * * @param array $array Array to walk while sanitizing contents. * @return array Sanitized $array. */ 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; } |