Make WordPress Core


Ignore:
Timestamp:
07/29/2013 02:09:31 AM (13 years ago)
Author:
dd32
Message:

HTTP-External Tests: Add a test for #16890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/WPHTTP-testcase-redirection-script.php

    r1318 r1329  
    8484}
    8585
     86if ( isset( $_GET['multiple-location-headers'] ) ) {
     87    if ( ! isset( $_GET['redirected'] ) ) {
     88        header( "Location: $url?multiple-location-headers=1&redirected=one", false );
     89        header( "Location: $url?multiple-location-headers=1&redirected=two", false );
     90        exit;
     91    }
     92    if ( 'two' != $_GET['redirected'] )
     93        echo 'FAIL';
     94    else
     95        echo 'PASS';
     96    exit;
     97}
     98
    8699$rt = isset($_GET['rt']) ? $_GET['rt'] : 5;
    87100$r = isset($_GET['r']) ? $_GET['r'] : 0;
Note: See TracChangeset for help on using the changeset viewer.