WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/13/2005 04:36:09 PM (15 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-comments-post.php

    r2431 r2436  
    5353$location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];
    5454
    55 header("Location: $location");
    56 
     55wp_redirect($location);
    5756?>
Note: See TracChangeset for help on using the changeset viewer.