WordPress.org

Make WordPress Core

Changeset 4280


Ignore:
Timestamp:
10/03/2006 10:04:34 PM (15 years ago)
Author:
markjaquith
Message:

cast to array. props to Denis de Bernardy, Nazgul. fixes #3179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/template-functions-category.php

    r3338 r4280  
    319319    $thelist = "";
    320320
    321     foreach ( $categories as $category ) {
     321    foreach ( (array) $categories as $category ) {
    322322        if ( ( intval($hide_empty) == 0 || $category->category_count) && (!$hierarchical || $category->category_parent == $child_of) ) {
    323323            $num_found++;
Note: See TracChangeset for help on using the changeset viewer.