ParagonIE_Sodium_Compat::version_string

Advertisement

Summery Summery

This emulates libsodium’s version_string() function, except ours is prefixed with ‘polyfill-‘.

Syntax Syntax

ParagonIE_Sodium_Compat::version_string()

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Compat.php

    public static function version_string()
    {
        if (self::useNewSodiumAPI()) {
            return (string) sodium_version_string();
        }
        if (self::use_fallback('version_string')) {
            return (string) call_user_func('\\Sodium\\version_string');
        }
        return (string) self::VERSION_STRING;
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.