Call nocache_headers for logged in users
git-svn-id: http://svn.automattic.com/wordpress/trunk@3047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7970315fa3
commit
cfa85af2d8
|
@ -1500,7 +1500,10 @@ class WP {
|
||||||
}
|
}
|
||||||
|
|
||||||
function send_headers() {
|
function send_headers() {
|
||||||
|
global $current_user;
|
||||||
@header('X-Pingback: '. get_bloginfo('pingback_url'));
|
@header('X-Pingback: '. get_bloginfo('pingback_url'));
|
||||||
|
if ( $current_user )
|
||||||
|
nocache_headers();
|
||||||
if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
|
if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
|
||||||
status_header( 404 );
|
status_header( 404 );
|
||||||
} else if ( empty($this->query_vars['feed']) ) {
|
} else if ( empty($this->query_vars['feed']) ) {
|
||||||
|
@ -1600,8 +1603,8 @@ class WP {
|
||||||
|
|
||||||
function main($query_args = '') {
|
function main($query_args = '') {
|
||||||
$this->parse_request($query_args);
|
$this->parse_request($query_args);
|
||||||
$this->send_headers();
|
|
||||||
$this->prime_caches();
|
$this->prime_caches();
|
||||||
|
$this->send_headers();
|
||||||
$this->query_posts();
|
$this->query_posts();
|
||||||
$this->handle_404();
|
$this->handle_404();
|
||||||
$this->register_globals();
|
$this->register_globals();
|
||||||
|
|
Loading…
Reference in New Issue