WordPress.org

Make WordPress Core

Changeset 27168


Ignore:
Timestamp:
02/12/2014 08:39:21 PM (7 years ago)
Author:
nacin
Message:

Don't use HTTPS in unit tests if OpenSSL isn't loaded.

props bpetty.
fixes #27114.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/trac.php

    r25002 r27168  
    1515     */
    1616    public static function isTracTicketClosed( $trac_url, $ticket_id ) {
     17        if ( ! extension_loaded( 'openssl' ) ) {
     18            $trac_url = preg_replace( "/^https:/", "http:", $trac_url );
     19        }
     20
    1721        if ( ! isset( self::$trac_ticket_cache[ $trac_url ] ) ) {
    1822            // In case you're running the tests offline, keep track of open tickets.
Note: See TracChangeset for help on using the changeset viewer.