Changeset 36405
- Timestamp:
- 01/26/2016 03:46:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r36325 r36405 2517 2517 2518 2518 /** 2519 * Removes comment ID from the comment cache.2519 * Removes a comment from the object cache. 2520 2520 * 2521 2521 * @since 2.3.0 2522 2522 * 2523 * @param int|array $ids Comment ID or a rray of comment IDs to remove from cache2523 * @param int|array $ids Comment ID or an array of comment IDs to remove from cache. 2524 2524 */ 2525 2525 function clean_comment_cache($ids) { 2526 2526 foreach ( (array) $ids as $id ) { 2527 2527 wp_cache_delete( $id, 'comment' ); 2528 2529 /** 2530 * Fires after a comment has been removed from the object cache. 2531 * 2532 * @since 4.5.0 2533 * 2534 * @param int $id Comment ID. 2535 */ 2536 do_action( 'clean_comment_cache', $id ); 2528 2537 } 2529 2538
Note: See TracChangeset
for help on using the changeset viewer.