WordPress.org

Make WordPress Core

Ticket #10619: unserialize.import.diff

File unserialize.import.diff, 492 bytes (added by znarfor, 6 years ago)

Alternative patch

  • wp-admin/import/wordpress.php

     
    599599                        $key   = $this->get_tag( $p, 'wp:meta_key' ); 
    600600                        $value = $this->get_tag( $p, 'wp:meta_value' ); 
    601601                        $value = stripslashes($value); // add_post_meta() will escape. 
     602                        $value = maybe_unserialize($value); 
    602603 
    603604                        $this->process_post_meta($post_id, $key, $value); 
    604605