PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 All 139 releases
← All changes | includes/Core/Cryptography/SodiumCompat.php +11 -3 V3.0.2 → V3.3.2 View file →
@@ -8,12 +8,20 @@
8 8 class SodiumCompat
9 9 {
10 10 public function __construct()
11 11 {
12 - if (!class_exists('ParagonIE_Sodium_Compat')) {
13 - require_once ABSPATH . WPINC . '/sodium_compat/autoload.php';
14 - Log::debug_log(class_exists('ParagonIE_Sodium_Compat') ? 'Found' : 'ParagonIE\Sodium\Compat not found');
12 + if (class_exists('ParagonIE_Sodium_Compat')) {
13 + return;
15 14 }
15 +
16 + $autoloader = ABSPATH . WPINC . '/sodium_compat/autoload.php';
17 + if (!is_readable($autoloader)) {
18 + Log::debug_log('WordPress sodium_compat autoloader not readable at ' . $autoloader);
19 +
20 + return;
21 + }
22 +
23 + require_once $autoloader;
16 24 }
17 25
18 26 /**
19 27 * Wrap crypto_aead_*_encrypt() in a drop-dead-simple encryption interface