Don't cache posts when importing. fixes #2224

git-svn-id: http://svn.automattic.com/wordpress/trunk@3404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-05 05:34:28 +00:00
parent 81cb9e9d7b
commit 778923ceb1
1 changed files with 3 additions and 0 deletions

View File

@ -588,6 +588,9 @@ function &get_post(&$post, $output = OBJECT) {
} }
} }
if ( defined(WP_IMPORTING) )
unset($post_cache);
if ( $output == OBJECT ) { if ( $output == OBJECT ) {
return $_post; return $_post;
} elseif ( $output == ARRAY_A ) { } elseif ( $output == ARRAY_A ) {