WordPress.org

Make WordPress Core

Changeset 16343


Ignore:
Timestamp:
11/13/2010 03:32:20 PM (9 years ago)
Author:
nacin
Message:

Move cast to within array_keys to prevent warning when get_the_terms returns false. see #15407.

File:
1 edited

Legend:

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

    r16342 r16343  
    6767    $categories = get_the_terms( $id, 'category' );
    6868
    69     foreach ( (array) array_keys( $categories ) as $key ) {
     69    foreach ( array_keys( (array) $categories ) as $key ) {
    7070        _make_cat_compat( $categories[$key] );
    7171    }
Note: See TracChangeset for help on using the changeset viewer.