diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index 89488203fc..1f46a2697b 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -601,7 +601,10 @@ class WP_Import { if ( $postmeta) { foreach ($postmeta as $p) { $key = $this->get_tag( $p, 'wp:meta_key' ); $value = $this->get_tag( $p, 'wp:meta_value' ); - + $value = stripslashes($value); // add_post_meta() will escape. + // get_post_meta would have done this but we read straight from the db on export so we could have a serialized string + $value = maybe_unserialize($value); + $this->process_post_meta($post_id, $key, $value); } }