Make WordPress Core


Ignore:
Timestamp:
03/13/2005 04:36:09 PM (20 years ago)
Author:
ryan
Message:

Introducing wp_redirect(), first cut. http://mosquito.wordpress.org/view.php?id=592 Props: Toby Simmons

File:
1 edited

Legend:

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

    r2432 r2436  
    17121712endif;
    17131713
     1714// Cookie safe redirect.  Works around IIS Set-Cookie bug.
     1715// http://support.microsoft.com/kb/q176113/
     1716if ( !function_exists('wp_redirect') ) :
     1717function wp_redirect($location) {
     1718    global $is_IIS;
     1719
     1720    if ($is_IIS)
     1721        header("Refresh: 0;url=$location");
     1722    else
     1723        header("Location: $location");
     1724}
     1725endif;
     1726
    17141727function is_plugin_page() {
    17151728    global $plugin_page;
Note: See TracChangeset for help on using the changeset viewer.