WordPress.org

Make WordPress Core

Changeset 14755


Ignore:
Timestamp:
05/20/2010 03:47:25 AM (11 years ago)
Author:
wpmuguru
Message:

add_metadata() already stripslashes & unserializes metadata, fixes #12860

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r14497 r14755  
    602602            $key   = $this->get_tag( $p, 'wp:meta_key' );
    603603            $value = $this->get_tag( $p, 'wp:meta_value' );
    604             $value = stripslashes($value); // add_post_meta() will escape.
    605             // get_post_meta would have done this but we read straight from the db on export so we could have a serialized string
    606             $value = maybe_unserialize($value);
    607604
    608605            $this->process_post_meta($post_id, $key, $value);
Note: See TracChangeset for help on using the changeset viewer.