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-includes/pluggable-functions.php

    r2607 r2623  
    107107                                !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true)) ||
    108108                         (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
    109                 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
    110                 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    111                 header('Cache-Control: no-cache, must-revalidate, max-age=0');
    112                 header('Pragma: no-cache');
     109                nocache_headers();
    113110       
    114111                header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
Note: See TracChangeset for help on using the changeset viewer.