WordPress.org

Make WordPress Core

Changeset 4252


Ignore:
Timestamp:
09/26/06 00:55:21 (8 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.