Ticket #11566: comment.php.diff
File comment.php.diff, 495 bytes (added by , 15 years ago) |
---|
-
comment.php
old new 1785 1785 * @param int|array $id Comment ID or array of comment IDs to remove from cache 1786 1786 */ 1787 1787 function clean_comment_cache($ids) { 1788 foreach ( (array) $ids as $id ) 1788 foreach ( (array) $ids as $id ) { 1789 1789 wp_cache_delete($id, 'comment'); 1790 if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->comment_ID == $id) ) { 1791 unset($GLOBALS['comment']); 1792 } 1793 } 1790 1794 } 1791 1795 1792 1796 /**