mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
04d45cb1f3
commit
705ca7cd48
@ -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>";
|
||||
|
Loading…
Reference in New Issue
Block a user