From 966841f1037b2b5afbaab1dc35fc6d11a700e64e Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Thu, 20 May 2010 03:47:25 +0000 Subject: [PATCH] add_metadata() already stripslashes & unserializes metadata, fixes #12860 git-svn-id: http://svn.automattic.com/wordpress/trunk@14755 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/wordpress.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index 1db33f8e37..89488203fc 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -601,9 +601,6 @@ 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);