Adds slashes to a string or recursively adds slashes to strings within an array.
Description
This function is just a wrapper for wp_slash(). It was originally related to magic quotes functionality which was deprecated in PHP 5.3.0 and removed in PHP 5.4.0.
Signature, return type and hooks compared across 5 parsed releases.
7.0.0
Deprecated. Use wp_slash() instead.from the docblock
0.71
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/deprecated.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.