addslashes_strings_only( mixed $value )
Adds slashes only if the provided value is a string.
Description Description
Parameters Parameters
- $value
-
(mixed) (Required)
Return Return
(mixed)
Source Source
File: wp-includes/formatting.php
function addslashes_strings_only( $value ) { return is_string( $value ) ? addslashes( $value ) : $value; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |