Changeset 3047

Show
Ignore:
Timestamp:
11/11/05 01:44:41 (3 years ago)
Author:
matt
Message:

Call nocache_headers for logged in users

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/classes.php

    r3011 r3047  
    15011501 
    15021502    function send_headers() { 
     1503        global $current_user; 
    15031504        @header('X-Pingback: '. get_bloginfo('pingback_url')); 
     1505        if ( $current_user ) 
     1506            nocache_headers(); 
    15041507        if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) { 
    15051508            status_header( 404 ); 
     
    16011604    function main($query_args = '') { 
    16021605        $this->parse_request($query_args); 
     1606        $this->prime_caches(); 
    16031607        $this->send_headers(); 
    1604         $this->prime_caches(); 
    16051608        $this->query_posts(); 
    16061609        $this->handle_404();