sodium_memzero

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

WordPress Version: 6.3

/**
 * @see ParagonIE_Sodium_Compat::memzero()
 * @param string $string
 * @return void
 * @throws SodiumException
 * @throws TypeError
 *
 * @psalm-suppress ReferenceConstraintViolation
 */
function sodium_memzero(&$string)
{
    ParagonIE_Sodium_Compat::memzero($string);
}

WordPress Version: 6.1

/**
 * @see ParagonIE_Sodium_Compat::memzero()
 * @param string $string
 * @return void
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_memzero(&$string)
{
    ParagonIE_Sodium_Compat::memzero($string);
}

WordPress Version: 2.1

/**
 * @see ParagonIE_Sodium_Compat::memzero()
 * @param string $str
 * @return void
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_memzero(&$str)
{
    ParagonIE_Sodium_Compat::memzero($str);
}

WordPress Version: 5.2

/**
 * @see ParagonIE_Sodium_Compat::memzero()
 * @param string &$str
 * @return void
 * @throws SodiumException
 * @throws TypeError
 */
function sodium_memzero(&$str)
{
    ParagonIE_Sodium_Compat::memzero($str);
}