Make WordPress Core


Ignore:
Timestamp:
06/27/2006 05:38:56 AM (20 years ago)
Author:
ryan
Message:

Use wp_redirect().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r3918 r3928  
    5353                $location = "post.php?action=edit&post=$post_ID";
    5454
    55         header("Location: $location");
     55        wp_redirect($location);
    5656        exit();
    5757        break;
    … …  
    120120        }
    121121
    122         header ('Location: ' . $location); // Send user on their way while we keep working
     122        wp_redirect($location); // Send user on their way while we keep working
    123123
    124124        exit();
    … …  
    146146        elseif (strstr($sendback, 'attachments.php')) $sendback = get_settings('siteurl') .'/wp-admin/attachments.php';
    147147        $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
    148         header ('Location: ' . $sendback);
     148        wp_redirect($sendback);
    149149        exit();
    150150        break;
    151151
    152152default:
    153         header('Location: edit.php');
     153        wp_redirect('edit.php');
    154154        exit();
    155155        break;
Note: See TracChangeset for help on using the changeset viewer.