diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index 3d1439a..9b8141f 100644
a
|
b
|
function xmlrpc_pingback_error( $ixr_error ) { |
2519 | 2519 | * Removes comment ID from the comment cache. |
2520 | 2520 | * |
2521 | 2521 | * @since 2.3.0 |
| 2522 | * @since 4.5.0 Added 'clean_comment_cache' action |
2522 | 2523 | * |
2523 | 2524 | * @param int|array $ids Comment ID or array of comment IDs to remove from cache |
2524 | 2525 | */ |
2525 | | function clean_comment_cache($ids) { |
| 2526 | function clean_comment_cache( $ids ) { |
2526 | 2527 | foreach ( (array) $ids as $id ) { |
2527 | 2528 | wp_cache_delete( $id, 'comment' ); |
| 2529 | |
| 2530 | /** |
| 2531 | * Fires once after each taxonomy's term cache has been cleaned. |
| 2532 | * |
| 2533 | * @since 4.5.0 |
| 2534 | * |
| 2535 | * @param int $id Comment ID |
| 2536 | */ |
| 2537 | do_action( 'clean_comment_cache', $id ); |
2528 | 2538 | } |
2529 | 2539 | |
2530 | 2540 | wp_cache_set( 'last_changed', microtime(), 'comment' ); |