From ad944bb8224627506772b3eeb69a191d232480aa Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 18 Aug 2010 06:50:53 +0000 Subject: [PATCH] Do not attempt to clear post cache for post ID 0... that will recursively destroy your server git-svn-id: https://develop.svn.wordpress.org/trunk@15503 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index 6d9d554be4..08b2b45126 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -4019,6 +4019,9 @@ function clean_post_cache($id) { $id = (int) $id; + if ( 0 === $id ) + return; + wp_cache_delete($id, 'posts'); wp_cache_delete($id, 'post_meta');