rawurlencode_deep

The timeline below displays how wordpress function rawurlencode_deep has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Navigates through an array, object, or scalar, and raw-encodes the values to be used in a URL.
 *
 * @since 3.4.0
 *
 * @param mixed $value The array or string to be encoded.
 * @return mixed The encoded value.
 */
function rawurlencode_deep($value)
{
    return map_deep($value, 'rawurlencode');
}

WordPress Version: 4.4

/**
 * Navigates through an array, object, or scalar, and raw-encodes the values to be used in a URL.
 *
 * @since 3.4.0
 *
 * @param mixed $value The array or string to be encoded.
 * @return mixed $value The encoded value.
 */
function rawurlencode_deep($value)
{
    return map_deep($value, 'rawurlencode');
}

WordPress Version: 3.7

/**
 * Navigates through an array and raw encodes the values to be used in a URL.
 *
 * @since 3.4.0
 *
 * @param array|string $value The array or string to be encoded.
 * @return array|string $value The encoded array (or string from the callback).
 */
function rawurlencode_deep($value)
{
    return is_array($value) ? array_map('rawurlencode_deep', $value) : rawurlencode($value);
}