Make WordPress Core


Ignore:
Timestamp:
09/26/2006 12:55:21 AM (18 years ago)
Author:
ryan
Message:

Send 302 on redirect. Props leflo. fixes #3166

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r4144 r4252  
    258258// http://support.microsoft.com/kb/q176113/
    259259if ( !function_exists('wp_redirect') ) :
    260 function wp_redirect($location) {
     260function wp_redirect($location, $status = 302) {
    261261    global $is_IIS;
    262262
     
    266266    $strip = array('%0d', '%0a');
    267267    $location = str_replace($strip, '', $location);
     268
     269    status_header($status);
    268270
    269271    if ($is_IIS)
Note: See TracChangeset for help on using the changeset viewer.