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/page.php

    r3918 r3928  
    5050                $location = "page.php?action=edit&post=$page_ID";
    5151
    52         header("Location: $location");
     52        wp_redirect($location);
    5353        exit();
    5454        break;
    … …  
    113113                $location = 'page-new.php';
    114114        }
    115         header ('Location: ' . $location); // Send user on their way while we keep working
     115        wp_redirect($location); // Send user on their way while we keep working
    116116
    117117        exit();
    … …  
    139139        elseif (strstr($sendback, 'attachments.php')) $sendback = get_settings('siteurl') .'/wp-admin/attachments.php';
    140140        $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
    141         header ('Location: ' . $sendback);
     141        wp_redirect($sendback);
    142142        exit();
    143143        break;
    144144
    145145default:
    146         header('Location: edit-pages.php');
     146        wp_redirect('edit-pages.php');
    147147        exit();
    148148        break;
Note: See TracChangeset for help on using the changeset viewer.