WordPress.org

Make WordPress Core

Ticket #34409: 34409.patch

File 34409.patch, 567 bytes (added by imath, 5 years ago)
  • src/wp-includes/random_compat/random.php

    diff --git src/wp-includes/random_compat/random.php src/wp-includes/random_compat/random.php
    index 1a4b326..45d288c 100644
    if (PHP_VERSION_ID < 70000) { 
    104104        if (
    105105            !function_exists('random_bytes') &&
    106106            extension_loaded('openssl') &&
    107             PHP_VERSION_ID >= 50300
     107            PHP_VERSION_ID >= 50401
    108108        ) {
    109109            // See random_bytes_openssl.php
    110110            require_once $__DIR__.'/random_bytes_openssl.php';