WordPress.org

Make WordPress Core

Changeset 9602


Ignore:
Timestamp:
11/10/08 23:03:34 (5 years ago)
Author:
westi
Message:

Notice fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r9596 r9602  
    19911991    foreach ( $results as $row ) { 
    19921992        $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     
    19961996    // Touch every ancestor's lookup row for each post in each term 
    19971997    foreach ( $term_ids as $term_id ) { 
     
    19991999        while ( $parent = $terms_by_id[$child]->parent ) { 
    20002000            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                } 
    20032004            $child = $parent; 
    20042005        } 
Note: See TracChangeset for help on using the changeset viewer.