Changeset 9602
- Timestamp:
- 11/10/2008 11:03:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r9596 r9602 1991 1991 foreach ( $results as $row ) { 1992 1992 $id = $term_ids[$row->term_taxonomy_id]; 1993 ++$term_items[$id][$row->object_id];1994 } 1995 1993 $term_items[$id][$row->object_id] = isset($term_items[$id][$row->object_id]) ? ++$term_items[$id][$row->object_id] : 1; 1994 } 1995 1996 1996 // Touch every ancestor's lookup row for each post in each term 1997 1997 foreach ( $term_ids as $term_id ) { … … 1999 1999 while ( $parent = $terms_by_id[$child]->parent ) { 2000 2000 if ( !empty($term_items[$term_id]) ) 2001 foreach ( $term_items[$term_id] as $item_id => $touches ) 2002 ++$term_items[$parent][$item_id]; 2001 foreach ( $term_items[$term_id] as $item_id => $touches ) { 2002 $term_items[$parent][$item_id] = isset($term_items[$parent][$item_id]) ? ++$term_items[$parent][$item_id]: 1; 2003 } 2003 2004 $child = $parent; 2004 2005 }
Note: See TracChangeset
for help on using the changeset viewer.