Make WordPress Core


Ignore:
Timestamp:
06/09/2005 12:17:43 AM (21 years ago)
Author:
matt
Message:

Better headers for CGI enviroments

File:
1 edited

Legend:

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

    r2580 r2623  
    5353setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH);
    5454
    55 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
    56 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    57 header('Cache-Control: no-cache, must-revalidate, max-age=0');
    58 header('Pragma: no-cache');
     55nocache_headers();
    5956
    6057$location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];
Note: See TracChangeset for help on using the changeset viewer.