Cast to array. fixes #8148

git-svn-id: http://svn.automattic.com/wordpress/trunk@9698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-14 22:50:46 +00:00
parent 04d45cb1f3
commit 705ca7cd48

View File

@ -70,7 +70,7 @@ function dismissed_updates() {
<?php
echo '<p class="hide-if-no-js"><a id="show-dismissed" href="#">'.__('Show hidden updates').'</a></p>';
echo '<ul id="dismissed-updates" class="core-updates dismissed">';
foreach($dismissed as $update) {
foreach( (array) $dismissed as $update) {
echo '<li>';
list_core_update( $update );
echo '</li>';
@ -108,7 +108,7 @@ function core_upgrade_preamble() {
echo '<ul class="core-updates">';
$alternate = true;
foreach( $updates as $update ) {
foreach( (array) $updates as $update ) {
$class = $alternate? ' class="alternate"' : '';
$alternate = !$alternate;
echo "<li $class>";