stripslashes_from_strings_only( mixed $value )

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


Parameters Parameters

$value

(mixed) (Required) The array or string to be stripped.


Top ↑

Return Return

(mixed) The stripped value.


Top ↑

Source Source

File: wp-includes/formatting.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.