WordPress.org

Make WordPress Core

Changeset 920 in tests


Ignore:
Timestamp:
07/19/12 16:18:57 (2 years ago)
Author:
nacin
Message:

More cleaning of the Trac URL while converting it to a file path in [919].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/trac.php

    r919 r920  
    1717        if ( ! isset( self::$trac_ticket_cache[ $trac_url ] ) ) { 
    1818            // In case you're running the tests offline, keep track of open tickets. 
    19             $file = DIR_TESTDATA . '/.trac-ticket-cache.' . str_replace( array( 'http://', 'https://' ), '', $trac_url ); 
     19            $file = DIR_TESTDATA . '/.trac-ticket-cache.' . str_replace( array( 'http://', 'https://', '/' ), array( '', '', '-' ), rtrim( $trac_url, '/' ) ); 
     20            var_dump( $file ); return; 
    2021            $tickets = @file_get_contents( $trac_url . '/query?status=%21closed&format=csv&col=id' ); 
    2122            // Check if our HTTP request failed. 
Note: See TracChangeset for help on using the changeset viewer.