From 778923ceb1d7075f91c9e3d589ea7b079d185e32 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 5 Jan 2006 05:34:28 +0000 Subject: [PATCH] Don't cache posts when importing. fixes #2224 git-svn-id: http://svn.automattic.com/wordpress/trunk@3404 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 66d147261b..10523d60d5 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -588,6 +588,9 @@ function &get_post(&$post, $output = OBJECT) { } } + if ( defined(WP_IMPORTING) ) + unset($post_cache); + if ( $output == OBJECT ) { return $_post; } elseif ( $output == ARRAY_A ) {