| 1 | Index: wp-includes/taxonomy.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/taxonomy.php (revision 11001) |
|---|
| 4 | +++ wp-includes/taxonomy.php (working copy) |
|---|
| 5 | @@ -653,7 +653,7 @@ |
|---|
| 6 | $key = md5( serialize( compact(array_keys($defaults)) ) . serialize( $taxonomies ) . $filter_key ); |
|---|
| 7 | $last_changed = wp_cache_get('last_changed', 'terms'); |
|---|
| 8 | if ( !$last_changed ) { |
|---|
| 9 | - $last_changed = time(); |
|---|
| 10 | + $last_changed = current_time('timestamp'); |
|---|
| 11 | wp_cache_set('last_changed', $last_changed, 'terms'); |
|---|
| 12 | } |
|---|
| 13 | $cache_key = "get_terms:$key:$last_changed"; |
|---|
| 14 | @@ -1836,7 +1836,7 @@ |
|---|
| 15 | delete_option("{$taxonomy}_children"); |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | - wp_cache_set('last_changed', time(), 'terms'); |
|---|
| 19 | + wp_cache_set('last_changed', current_time('timestamp'), 'terms'); |
|---|
| 20 | |
|---|
| 21 | do_action('clean_term_cache', $ids, $taxonomy); |
|---|
| 22 | } |
|---|