Changeset 22117
- Timestamp:
- 10/04/2012 06:37:43 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r22021 r22117 327 327 328 328 while ( $parent->parent ) { // get the top parent 329 $parent = &get_term( $parent->parent, $taxonomy->name );329 $parent = get_term( $parent->parent, $taxonomy->name ); 330 330 if ( is_wp_error( $parent ) ) 331 331 break; -
trunk/wp-includes/category-template.php
r21981 r22117 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_category( $id ); 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_category( $cat_ID ); 139 139 if ( is_wp_error( $category ) ) 140 140 return $category;
Note: See TracChangeset
for help on using the changeset viewer.