Changeset 36988
- Timestamp:
- 03/14/2016 01:52:14 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category.php
r36476 r36988 52 52 } 53 53 54 $categories = (array) get_terms( $taxonomy, $args ); 55 56 foreach ( array_keys( $categories ) as $k ) 57 _make_cat_compat( $categories[$k] ); 54 $categories = get_terms( $taxonomy, $args ); 55 56 if ( is_wp_error( $categories ) ) { 57 $categories = array(); 58 } else { 59 $categories = (array) $categories; 60 foreach ( array_keys( $categories ) as $k ) { 61 _make_cat_compat( $categories[ $k ] ); 62 } 63 } 58 64 59 65 return $categories;
Note: See TracChangeset
for help on using the changeset viewer.