WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34845


Ignore:
Timestamp:
12/04/2015 02:21:32 PM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34845

    • Property Milestone changed from Awaiting Review to WordPress.org
    • Property Component changed from General to Import
    • Property Summary changed from Serialized custom fields are ignored to Serialized custom fields are ignored on import
  • Ticket #34845 – Description

    initial v1  
    22
    33we would like to report a bug related with .xml file import. Data from our builder are stored in $items table. Post meta values entry are made with below code:
    4 
     4{{{
    55$new = wp_slash( $items );
    66update_post_meta( $post_id, 'mfn-page-items', $new );
    7 
     7}}}
    88And in accordance to your documentation https://codex.wordpress.org/Function_Reference/update_post_meta#Character_Escaping, we use "wp_slash" function. Table with data is saving and reading properly. The problem is when we export .xml file with Tools > Export and when we try to import data with built-in Tools > Import > WordPress option, serialised table is ignored and we get empty field.
    99