Wrap the apply_filters call in a function_exists check as this can be called before it is defined. See #9205.
git-svn-id: https://develop.svn.wordpress.org/trunk@10626 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a79d06b51d
commit
8500070897
@ -1477,7 +1477,11 @@ function wp_get_nocache_headers() {
|
|||||||
'Cache-Control' => 'no-cache, must-revalidate, max-age=0',
|
'Cache-Control' => 'no-cache, must-revalidate, max-age=0',
|
||||||
'Pragma' => 'no-cache',
|
'Pragma' => 'no-cache',
|
||||||
);
|
);
|
||||||
return apply_filters('nocache_headers', $headers);
|
|
||||||
|
if ( function_exists('apply_filters') ) {
|
||||||
|
$headers = apply_filters('nocache_headers', $headers);
|
||||||
|
}
|
||||||
|
return $headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user