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 ) {