Call nocache_headers for logged in users

git-svn-id: https://develop.svn.wordpress.org/trunk@3047 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-11-11 01:44:41 +00:00
parent 5a4f4f12c6
commit 4a11b6e79f
1 changed files with 4 additions and 1 deletions

View File

@ -1500,7 +1500,10 @@ class WP {
}
function send_headers() {
global $current_user;
@header('X-Pingback: '. get_bloginfo('pingback_url'));
if ( $current_user )
nocache_headers();
if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
status_header( 404 );
} else if ( empty($this->query_vars['feed']) ) {
@ -1600,8 +1603,8 @@ class WP {
function main($query_args = '') {
$this->parse_request($query_args);
$this->send_headers();
$this->prime_caches();
$this->send_headers();
$this->query_posts();
$this->handle_404();
$this->register_globals();