Changeset 31206 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 01/16/2015 04:45:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r31168 r31206 3917 3917 3918 3918 // Touch every ancestor's lookup row for each post in each term 3919 $ancestors = array(); 3919 3920 foreach ( $term_ids as $term_id ) { 3921 $ancestors[] = $term_id; 3920 3922 $child = $term_id; 3921 3923 while ( !empty( $terms_by_id[$child] ) && $parent = $terms_by_id[$child]->parent ) { 3924 if ( in_array( $parent, $ancestors ) ) { 3925 break; 3926 } 3927 3922 3928 if ( !empty( $term_items[$term_id] ) ) 3923 3929 foreach ( $term_items[$term_id] as $item_id => $touches ) {
Note: See TracChangeset
for help on using the changeset viewer.