WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Importer
Importer is double-serializing custom fields (2 posts)

  1. husani
    Member
    Posted 3 years ago #

    Custom page fields exist in a single-blog WP 3.0 installation. The calls to update_post_meta send an array, I'm not manually serializing or anything like that.

    When these pages are imported into another WP 3.0 installation (this time, a MU), while the custom fields are saved in the postmeta table, they're being serialized AGAIN.

    Original, from DB:
    a:2:{s:5:"title";s:0:"";s:3:"url";s:0:"";}

    Imported, from DB:
    s:42:"a:2:{s:5:"title";s:0:"";s:3:"url";s:0:"";}";

    http://wordpress.org/extend/plugins/wordpress-importer/

  2. husani
    Member
    Posted 3 years ago #

    FYI, it even does this for wordpress-core records in postmeta:

    _wp_trash_meta_comments_status:

    Original, from DB:
    a:1:{i:1;s:1:"1";}

    Imported, from DB:
    s:18:"a:1:{i:1;s:1:"1";}";

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic