Make WordPress Core

Changeset 2623 for trunk/wp-login.php


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

Better headers for CGI enviroments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r2552 r2623  
    55$error = '';
    66
    7 header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
    8 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    9 header('Cache-Control: no-cache, must-revalidate');
    10 header('Pragma: no-cache');
     7nocache_headers();
     8
    119header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    1210
     
    2523    wp_clearcookie();
    2624    do_action('wp_logout');
    27     header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
    28     header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    29     header('Cache-Control: no-cache, must-revalidate, max-age=0');
    30     header('Pragma: no-cache');
     25    nocache_headers();
    3126    wp_redirect('wp-login.php');
    3227    exit();
Note: See TracChangeset for help on using the changeset viewer.