Make WordPress Core


Ignore:
Timestamp:
08/10/2021 01:03:41 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.17.0.

The latest version of sodium_compat includes fixes for PHP 8.1 compatibility and a fix for PHP 5.6 compatibility.

A full list of changes in this update can be found on GitHub:
https://github.com/paragonie/sodium_compat/compare/v1.16.1...v1.17.0

Follow-up to [49741], [51002].

Props jrf.
Fixes #53907.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sodium_compat/src/Core/Util.php

    r51002 r51591  
    288288
    289289    /**
    290      * Catch hash_update() failures and throw instead of silently proceding
     290     * Catch hash_update() failures and throw instead of silently proceeding
    291291     *
    292292     * @param HashContext|resource &$hs
     
    587587            $b >>= 1;
    588588        }
     589        $c = (int) @($c & -1);
    589590
    590591        /**
     
    930931
    931932        if ($mbstring === null) {
     933            if (!defined('MB_OVERLOAD_STRING')) {
     934                $mbstring = false;
     935                return $mbstring;
     936            }
    932937            $mbstring = extension_loaded('mbstring')
    933938                && defined('MB_OVERLOAD_STRING')
Note: See TracChangeset for help on using the changeset viewer.