Don't cache posts when importing. fixes #2224
git-svn-id: https://develop.svn.wordpress.org/trunk@3404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78d90dda67
commit
8845339de9
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user