From 4a11b6e79f0a3941dc10ef202d3b0c658a158ca0 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 11 Nov 2005 01:44:41 +0000 Subject: [PATCH] Call nocache_headers for logged in users git-svn-id: https://develop.svn.wordpress.org/trunk@3047 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index c57263a851..4f4a92f27b 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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();