mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
add_metadata() already stripslashes & unserializes metadata, fixes #12860
git-svn-id: https://develop.svn.wordpress.org/trunk@14755 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
705e174f02
commit
af102213aa
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user