WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана


default_ca_bundle() Yoast 1.0

Returns the default cacert bundle for the current system.

First, the openssl.cafile and curl.cainfo php.ini settings are checked. If those settings are not configured, then the common locations for bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X and Windows are checked. If any of these file locations are found on disk, they will be utilized.

Note: the result of this function is cached for subsequent calls.

Хуков нет.





Код default_ca_bundle() Yoast 17.1

function default_ca_bundle()
    static $cached = null;
    static $cafiles = [
        // Red Hat, CentOS, Fedora (provided by the ca-certificates package)
        // Ubuntu, Debian (provided by the ca-certificates package)
        // FreeBSD (provided by the ca_root_nss package)
        // SLES 12 (provided by the ca-certificates package)
        // OS X provided by homebrew (using the default path)
        // Google app engine
        // Windows?
    if ($cached) {
        return $cached;
    if ($ca = \ini_get('openssl.cafile')) {
        return $cached = $ca;
    if ($ca = \ini_get('curl.cainfo')) {
        return $cached = $ca;
    foreach ($cafiles as $filename) {
        if (\file_exists($filename)) {
            return $cached = $filename;
    throw new \RuntimeException(<<<EOT
No system CA bundle could be found in any of the the common system locations.
PHP versions earlier than 5.6 are not properly configured to use the system's
CA bundle by default. In order to verify peer certificates, you will need to
supply the path on disk to a certificate bundle to the 'verify' request
option: http://docs.guzzlephp.org/en/latest/clients.html#verify. If you do not
need a specific certificate bundle, then Mozilla provides a commonly used CA
bundle which can be downloaded here (provided by the maintainer of cURL):
https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt. Once
you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP
ini setting to point to the path to the file, allowing you to omit the 'verify'
request option. See http://curl.haxx.se/docs/sslcerts.html for more