Changeset 25662 for trunk/src/wp-includes/category-template.php
- Timestamp:
- 10/02/2013 07:58:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r25641 r25662 42 42 function get_category_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) { 43 43 $chain = ''; 44 $parent = get_ category( $id);44 $parent = get_term( $id, 'category' ); 45 45 if ( is_wp_error( $parent ) ) 46 46 return $parent; … … 136 136 function get_the_category_by_ID( $cat_ID ) { 137 137 $cat_ID = (int) $cat_ID; 138 $category = get_ category( $cat_ID);138 $category = get_term( $cat_ID, 'category' ); 139 139 if ( is_wp_error( $category ) ) 140 140 return $category;
Note: See TracChangeset
for help on using the changeset viewer.