Revert [14755] as this breaks post_meta importing. See #12860.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-20 19:44:30 +00:00
parent 9e51b45ef1
commit e5430249fb
1 changed files with 4 additions and 1 deletions

View File

@ -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);
} }