Make WordPress Core

Changeset 3047


Ignore:
Timestamp:
11/11/2005 01:44:41 AM (20 years ago)
Author:
matt
Message:

Call nocache_headers for logged in users

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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();
Note: See TracChangeset for help on using the changeset viewer.