From 63d8410bfa9706f07c6bf578d922e49ad10b408c Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@16093 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 216ba4b99..27e791af4 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}"); }