WordPress.org

Make WordPress Core

Changeset 4253


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

Send 302 on redirect. Props leflo. fixes #3166

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/pluggable-functions.php

    r4247 r4253  
    259259// http://support.microsoft.com/kb/q176113/
    260260if ( !function_exists('wp_redirect') ) :
    261 function wp_redirect($location) {
     261function wp_redirect($location, $status = 302) {
    262262    global $is_IIS;
    263263
     
    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.