Changeset 46859 for branches/5.3/src/wp-includes/sodium_compat/autoload.php
- Timestamp:
- 12/09/2019 04:44:58 PM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-includes/sodium_compat/autoload.php
r44953 r46859 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.