WordPress.org

Make WordPress Core

Changeset 6071


Ignore:
Timestamp:
09/10/2007 07:37:00 PM (12 years ago)
Author:
ryan
Message:

References don't work inside foreach in php4. Props mdawaffe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category.php

    r6026 r6071  
    2121    $categories = get_terms($taxonomy, $args);
    2222
    23     foreach ( $categories as $category )
    24         _make_cat_compat($category);
     23    foreach ( array_keys($categories) as $k )
     24        _make_cat_compat($categories[$k]);
    2525
    2626    return $categories;
Note: See TracChangeset for help on using the changeset viewer.