From f6f653c05bdc30290354fbef9b9dfd4d6c8f06dc Mon Sep 17 00:00:00 2001
From: Ryan Boren
Date: Fri, 14 Nov 2008 22:50:46 +0000
Subject: [PATCH] Cast to array. fixes #8148
git-svn-id: https://develop.svn.wordpress.org/trunk@9698 602fd350-edb4-49c9-b593-d223f7449a82
---
wp-admin/update-core.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 9647ee0fae..9c20c92d78 100644
--- a/wp-admin/update-core.php
+++ b/wp-admin/update-core.php
@@ -70,7 +70,7 @@ function dismissed_updates() {
'.__('Show hidden updates').'
';
echo '';
- foreach($dismissed as $update) {
+ foreach( (array) $dismissed as $update) {
echo '- ';
list_core_update( $update );
echo '
';
@@ -108,7 +108,7 @@ function core_upgrade_preamble() {
echo '';
$alternate = true;
- foreach( $updates as $update ) {
+ foreach( (array) $updates as $update ) {
$class = $alternate? ' class="alternate"' : '';
$alternate = !$alternate;
echo "- ";