mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Move an array cast further down the stack. props filosofo, fixes #13965.
git-svn-id: https://develop.svn.wordpress.org/trunk@16093 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8546c6797b
commit
82ae655534
@ -1642,7 +1642,7 @@ function wp_get_nocache_headers() {
|
||||
);
|
||||
|
||||
if ( function_exists('apply_filters') ) {
|
||||
$headers = apply_filters('nocache_headers', $headers);
|
||||
$headers = (array) apply_filters('nocache_headers', $headers);
|
||||
}
|
||||
return $headers;
|
||||
}
|
||||
@ -1658,7 +1658,7 @@ function wp_get_nocache_headers() {
|
||||
*/
|
||||
function nocache_headers() {
|
||||
$headers = wp_get_nocache_headers();
|
||||
foreach( (array) $headers as $name => $field_value )
|
||||
foreach( $headers as $name => $field_value )
|
||||
@header("{$name}: {$field_value}");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user