ParagonIE_Sodium_Compat::use_fallback

SummerySummery

Should we use the libsodium core function instead? This is always a good idea, if it’s available. (Unless we’re in the middle of running our unit test suite.)

Syntax

ParagonIE_Sodium_Compat::use_fallback( string $sodium_func_name = '' )

DescriptionDescription

If ext/libsodium is available, use it. Return TRUE. Otherwise, we have to use the code provided herein. Return FALSE.

ParametersParameters

$sodium_func_name

(string) (Optional)

Default value: ''

ReturnReturn

(bool)

SourceSource

File: wp-includes/sodium_compat/src/Compat.php


			
Scroll to Top