wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_unslash › WordPress Function

Since3.6.0
已弃用n/a
wp_unslash ( $value )
参数:
  • (string|array) $value String or array of data to unslash.
    Required: Yes
返回:
  • (string|array) Unslashed `$value`, in the same type as supplied.
定义在:
文档:

Removes slashes from a string or recursively removes slashes from strings within an array.

This should be used to remove slashes from data passed to core API that expects data to be unslashed.


源码

function wp_unslash( $value ) {
	return stripslashes_deep( $value );
}