Changeset 49968 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 01/17/2021 04:36:14 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r49967 r49968 5516 5516 5517 5517 /** 5518 * Add slashes to a string or array of strings, in a recursive manner.5518 * Adds slashes to a string or recursively adds slashes to strings within an array. 5519 5519 * 5520 5520 * This should be used when preparing data for core API that expects slashed data. … … 5524 5524 * @since 5.5.0 Non-string values are left untouched. 5525 5525 * 5526 * @param string| string[] $value String or array of stringsto slash.5527 * @return string| string[]Slashed $value.5526 * @param string|array $value String or array of data to slash. 5527 * @return string|array Slashed $value. 5528 5528 */ 5529 5529 function wp_slash( $value ) { … … 5540 5540 5541 5541 /** 5542 * Remove slashes from a string or array of strings.5542 * Removes slashes from a string or recursively removes slashes from strings within an array. 5543 5543 * 5544 5544 * This should be used to remove slashes from data passed to core API that … … 5547 5547 * @since 3.6.0 5548 5548 * 5549 * @param string|array $value String or array of stringsto unslash.5550 * @return string|array Unslashed $value 5549 * @param string|array $value String or array of data to unslash. 5550 * @return string|array Unslashed $value. 5551 5551 */ 5552 5552 function wp_unslash( $value ) {
Note: See TracChangeset
for help on using the changeset viewer.