From 82ae6555347143af0f9bc32a9271d6d12607ee86 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 29 Oct 2010 22:39:53 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 216ba4b99e..27e791af42 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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}"); }