WordPress.org

Make WordPress Core

Changeset 14763


Ignore:
Timestamp:
05/20/2010 07:44:30 PM (11 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

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

    r14755 r14763  
    602602            $key   = $this->get_tag( $p, 'wp:meta_key' );
    603603            $value = $this->get_tag( $p, 'wp:meta_value' );
    604 
     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);
     607           
    605608            $this->process_post_meta($post_id, $key, $value);
    606609
Note: See TracChangeset for help on using the changeset viewer.