From 8845339de9cda2bb81115f34a438b38ff923b5ab Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 5 Jan 2006 05:34:28 +0000 Subject: [PATCH] Don't cache posts when importing. fixes #2224 git-svn-id: https://develop.svn.wordpress.org/trunk@3404 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) {