From e55cf70e3584005511fdeed48839a8fe5586f884 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@15503 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index 6d9d554be..08b2b4512 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');