Changeset 46858 for trunk/src/wp-includes/sodium_compat/autoload.php
- Timestamp:
- 12/09/2019 04:40:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/autoload.php
r46586 r46858 44 44 require_once dirname(__FILE__) . '/lib/namespaced.php'; 45 45 require_once dirname(__FILE__) . '/lib/sodium_compat.php'; 46 } else { 47 require_once dirname(__FILE__) . '/src/PHP52/SplFixedArray.php'; 46 48 } 47 49 if (PHP_VERSION_ID < 70200 || !extension_loaded('sodium')) { 48 require_once dirname(__FILE__) . '/lib/php72compat.php'; 50 if (PHP_VERSION_ID >= 50300 && !defined('SODIUM_CRYPTO_SCALARMULT_BYTES')) { 51 require_once dirname(__FILE__) . '/lib/php72compat_const.php'; 52 } 53 if (PHP_VERSION_ID >= 70000) { 54 assert(class_exists('ParagonIE_Sodium_Compat'), 'Possible filesystem/autoloader bug?'); 55 } else { 56 assert(class_exists('ParagonIE_Sodium_Compat')); 57 } 58 require_once (dirname(__FILE__) . '/lib/php72compat.php'); 49 59 }
Note: See TracChangeset
for help on using the changeset viewer.