WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/08/2017 11:47:04 AM (4 years ago)
Author:
dd32
Message:

External Libraries: Update Random_Compat from 1.2.1 to 2.0.11.

Notably this fixes PHP7 parse errors of the files and removes the OpenSSL functionality.
Full Changes: https://github.com/paragonie/random_compat/compare/v1.2.1...v2.0.11

Props jrdelarosa.
See #42439.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/random_compat/error_polyfill.php

    r35365 r42130  
    55 *
    66 * The MIT License (MIT)
    7  * 
    8  * Copyright (c) 2015 Paragon Initiative Enterprises
     7 *
     8 * Copyright (c) 2015 - 2017 Paragon Initiative Enterprises
    99 *
    1010 * Permission is hereby granted, free of charge, to any person obtaining a copy
     
    3636
    3737if (!class_exists('TypeError', false)) {
    38     class TypeError extends Error
    39     {
    40        
     38    if (is_subclass_of('Error', 'Exception')) {
     39        class TypeError extends Error
     40        {
     41           
     42        }
     43    } else {
     44        class TypeError extends Exception
     45        {
     46           
     47        }
    4148    }
    4249}
Note: See TracChangeset for help on using the changeset viewer.