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



stripslashes_from_strings_only ›

Since4.4.0
已弃用n/a
stripslashes_from_strings_only ( $value )
参数:
  • (mixed) $value The array or string to be stripped.
    Required: Yes
返回:
  • (mixed) $value The stripped value.
定义在:
文档:

Callback function for `stripslashes_deep()` which strips slashes from strings.



源码

function stripslashes_from_strings_only( $value ) {
	return is_string( $value ) ? stripslashes( $value ) : $value;
}