Changeset 4173
- Timestamp:
- 09/07/2006 05:42:24 PM (18 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r4151 r4173 48 48 $name = $parent->cat_name; 49 49 50 if ( $parent->category_parent )50 if ( $parent->category_parent && ($parent->category_parent != $parent->cat_ID) ) 51 51 $chain .= get_category_parents($parent->category_parent, $link, $separator, $nicename); 52 52 -
trunk/wp-includes/category.php
r4104 r4173 173 173 $path = '/' . $leaf_path; 174 174 $curcategory = $category; 175 while ( $curcategory->category_parent != 0) {175 while ( ($curcategory->category_parent != 0) && ($curcategory->category_parent != $curcategory->cat_ID) ) { 176 176 $curcategory = $wpdb->get_row("SELECT cat_ID, category_nicename, category_parent FROM $wpdb->categories WHERE cat_ID = '$curcategory->category_parent'"); 177 177 $path = '/' . $curcategory->category_nicename . $path; … … 220 220 $category_list = array(); 221 221 foreach ( $categories as $category ) { 222 if ( $category->cat_ID == $category_id ) 223 continue; 224 222 225 if ( $category->category_parent == $category_id ) { 223 226 $category_list[] = $category;
Note: See TracChangeset
for help on using the changeset viewer.