mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Wrap the apply_filters call in a function_exists check as this can be called before it is defined. See #9205.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c7f59f6cfe
commit
e82379cee2
@ -1477,7 +1477,11 @@ function wp_get_nocache_headers() {
|
||||
'Cache-Control' => 'no-cache, must-revalidate, max-age=0',
|
||||
'Pragma' => 'no-cache',
|
||||
);
|
||||
return apply_filters('nocache_headers', $headers);
|
||||
|
||||
if ( function_exists('apply_filters') ) {
|
||||
$headers = apply_filters('nocache_headers', $headers);
|
||||
}
|
||||
return $headers;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user