Changeset 22110
- Timestamp:
- 10/04/2012 01:25:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r22090 r22110 1291 1291 do_action('wp_insert_comment', $id, $comment); 1292 1292 1293 wp_cache_incr( 'last_changed', 1, 'comment' ); 1293 if ( function_exists( 'wp_cache_incr' ) ) { 1294 wp_cache_incr( 'last_changed', 1, 'comment' ); 1295 } else { 1296 $last_changed = wp_cache_get( 'last_changed', 'comment' ); 1297 wp_cache_set( 'last_changed', $last_changed + 1, 'comment' ); 1298 } 1294 1299 1295 1300 return $id; … … 1964 1969 wp_cache_delete($id, 'comment'); 1965 1970 1966 wp_cache_incr( 'last_changed', 1, 'comment' ); 1971 if ( function_exists( 'wp_cache_incr' ) ) { 1972 wp_cache_incr( 'last_changed', 1, 'comment' ); 1973 } else { 1974 $last_changed = wp_cache_get( 'last_changed', 'comment' ); 1975 wp_cache_set( 'last_changed', $last_changed + 1, 'comment' ); 1976 } 1967 1977 } 1968 1978
Note: See TracChangeset
for help on using the changeset viewer.