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:
parent
81cb9e9d7b
commit
778923ceb1
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue