Changeset 12693 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 01/11/2010 06:53:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r12658 r12693 1909 1909 wp_cache_delete('all_ids', $taxonomy); 1910 1910 wp_cache_delete('get', $taxonomy); 1911 delete_ option("{$taxonomy}_children");1911 delete_transient("{$taxonomy}_children"); 1912 1912 do_action('clean_term_cache', $ids, $taxonomy); 1913 1913 } … … 2048 2048 if ( !is_taxonomy_hierarchical($taxonomy) ) 2049 2049 return array(); 2050 $children = get_ option("{$taxonomy}_children");2050 $children = get_transient("{$taxonomy}_children"); 2051 2051 if ( is_array($children) ) 2052 2052 return $children; … … 2058 2058 $children[$term->parent][] = $term->term_id; 2059 2059 } 2060 update_option("{$taxonomy}_children", $children);2060 set_transient("{$taxonomy}_children", $children); 2061 2061 2062 2062 return $children;
Note: See TracChangeset
for help on using the changeset viewer.