stripslashes_from_strings_only( mixed $value )
Callback function for stripslashes_deep()
which strips slashes from strings.
Parameters
- $value
-
(Required) The array or string to be stripped.
Return
(mixed) $value The stripped value.
Source
File: wp-includes/formatting.php
function stripslashes_from_strings_only( $value ) {
return is_string( $value ) ? stripslashes( $value ) : $value;
}
Changelog
Version | Description |
---|---|
WP-4.4.0 | Introduced. |