Make WordPress Core


Ignore:
Timestamp:
12/03/2020 05:39:03 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Update sodium_compat to v1.14.0.

This includes improved PHP 8 support and more inclusive language.

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

Follow-up to [48121], [49056], [49057].

Props jrf.
Fixes #51925.

File:
1 edited

Legend:

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

    r49057 r49741  
    904904     * @internal You should not use this directly from another application
    905905     *
     906     * Note: MB_OVERLOAD_STRING === 2, but we don't reference the constant
     907     * (for nuisance-free PHP 8 support)
     908     *
    906909     * @return bool
    907910     */
     
    914917                && defined('MB_OVERLOAD_STRING')
    915918                &&
    916             ((int) (ini_get('mbstring.func_overload')) & MB_OVERLOAD_STRING);
     919            ((int) (ini_get('mbstring.func_overload')) & 2);
     920            // MB_OVERLOAD_STRING === 2
    917921        }
    918922        /** @var bool $mbstring */
Note: See TracChangeset for help on using the changeset viewer.