diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/sodium_compat/autoload.php --- a/wp/wp-includes/sodium_compat/autoload.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/sodium_compat/autoload.php Wed Sep 21 18:19:35 2022 +0200 @@ -1,43 +1,52 @@ = 50300) { // Namespaces didn't exist before 5.3.0, so don't even try to use this // unless PHP >= 5.3.0 @@ -55,5 +64,9 @@ } else { assert(class_exists('ParagonIE_Sodium_Compat')); } - require_once (dirname(__FILE__) . '/lib/php72compat.php'); + require_once(dirname(__FILE__) . '/lib/php72compat.php'); +} elseif (!function_exists('sodium_crypto_stream_xchacha20_xor')) { + // Older versions of {PHP, ext/sodium} will not define these + require_once(dirname(__FILE__) . '/lib/php72compat.php'); } +require_once(dirname(__FILE__) . '/lib/ristretto255.php');