Move an array cast further down the stack. props filosofo, fixes #13965.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
62b349e605
commit
63d8410bfa
|
@ -1642,7 +1642,7 @@ function wp_get_nocache_headers() {
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( function_exists('apply_filters') ) {
|
if ( function_exists('apply_filters') ) {
|
||||||
$headers = apply_filters('nocache_headers', $headers);
|
$headers = (array) apply_filters('nocache_headers', $headers);
|
||||||
}
|
}
|
||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
|
@ -1658,7 +1658,7 @@ function wp_get_nocache_headers() {
|
||||||
*/
|
*/
|
||||||
function nocache_headers() {
|
function nocache_headers() {
|
||||||
$headers = wp_get_nocache_headers();
|
$headers = wp_get_nocache_headers();
|
||||||
foreach( (array) $headers as $name => $field_value )
|
foreach( $headers as $name => $field_value )
|
||||||
@header("{$name}: {$field_value}");
|
@header("{$name}: {$field_value}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue