Make WordPress Core


Ignore:
Timestamp:
11/14/2008 10:50:46 PM (16 years ago)
Author:
ryan
Message:

Cast to array. fixes #8148

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-core.php

    r9670 r9698  
    7171        echo '<p class="hide-if-no-js"><a id="show-dismissed" href="#">'.__('Show hidden updates').'</a></p>';
    7272        echo '<ul id="dismissed-updates" class="core-updates dismissed">';
    73         foreach($dismissed as $update) {
     73        foreach( (array) $dismissed as $update) {
    7474            echo '<li>';
    7575            list_core_update( $update );
     
    109109    echo '<ul class="core-updates">';
    110110    $alternate = true;
    111     foreach( $updates as $update ) {
     111    foreach( (array) $updates as $update ) {
    112112        $class = $alternate? ' class="alternate"' : '';
    113113        $alternate = !$alternate;
Note: See TracChangeset for help on using the changeset viewer.