Make WordPress Core

Changeset 12495


Ignore:
Timestamp:
12/22/2009 05:05:49 PM (14 years ago)
Author:
westi
Message:

Use maybe_unserialized on all post_meta values on import to ensure we don't end up with double serialized data in the database. Fixes #10619 props znarfor.

File:
1 edited

Legend:

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

    r12469 r12495  
    606606            $value = $this->get_tag( $p, 'wp:meta_value' );
    607607            $value = stripslashes($value); // add_post_meta() will escape.
    608 
     608            // get_post_meta would have done this but we read straight from the db on export so we could have a serialized string
     609            $value = maybe_unserialize($value);
     610           
    609611            $this->process_post_meta($post_id, $key, $value);
    610612
Note: See TracChangeset for help on using the changeset viewer.