Make WordPress Core

Ticket #2860: 2860.diff

File 2860.diff, 579 bytes (added by robmiller, 19 years ago)
  • pluggable.php

     
    284284        global $is_IIS;
    285285
    286286        $location = str_replace( array("\n", "\r"), '', $location);
    287 
    288         if ($is_IIS)
    289                 header("Refresh: 0;url=$location");
    290         else
    291                 header("Location: $location");
     287       
     288        if( !headers_sent() ) {
     289                if ($is_IIS)
     290                        header("Refresh: 0;url=$location");
     291                else
     292                        header("Location: $location");
     293        } else
     294                echo "<meta http-equiv='refresh' content='0;url=$location' />";
    292295}
    293296endif;
    294297