stripslashes_from_strings_only

函数


stripslashes_from_strings_only ( $value )
参数
  • (mixed)
    $value
    The array or string to be stripped.
    Required:
返回值
  • (mixed) The stripped value.
定义位置
  • wp-includes/formatting.php
    , line 2818
引入
4.4.0
弃用

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

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