public/wordpress/wp-content/plugins/backupbuddy/classes/_rollback_undo.php
/**
 * Navigates through an array and removes slashes from the values.
 *
 * If an array is passed, the array_map() function causes a callback to pass the
 * value back to the function. The slashes from this value will removed.
 *
 * @since 2.0.0
 *
 * @param array|string $value The array or string to be stripped.
 * @return array|string Stripped array (or string in the callback).
 */
Navigates through an array and removes slashes from the values.
If an array is passed, the array_map() function causes a callback to pass the
value back to the function. The slashes from this value will removed.



@param array|string $value The array or string to be stripped.
@return array|string Stripped array (or string in the callback).
Navigates through an array and removes slashes from the values . If an array is passed the array_map () function causes a callback to pass the value back to the function . The slashes from this value will removed . @param array|string $value The array or string to be stripped . @return array|string Stripped array ( or string in the callback ) .
function stripslashes_deep($value) {
	if ( is_array($value) ) {
		$value = array_map('stripslashes_deep', $value);
	} elseif ( is_object($value) ) {
		$vars = get_object_vars( $value );
		foreach ($vars as $key=>$data) {
			$value->{$key} = stripslashes_deep( $data );
		}
	} else {
		$value = stripslashes($value);
	}
	return $value;
}
function stripslashes_deep ( $ value ) { if ( is_array ( $ value ) ) { $ value = array_map ( 'stripslashes_deep' , $ value ) ; } elseif ( is_object ( $ value ) ) { $ vars = get_object_vars ( $ value ) ; foreach ( $ vars as $ key => $ data ) { $ value -> { $ key } = stripslashes_deep ( $ data ) ; } } else { $ value = stripslashes ( $ value ) ; } return $ value ; }
Navigates through an array and removes slashes from the values.
Navigates through an array and removes slashes from the values .