[wp-trac] [WordPress Trac] #34845: Serialized custom fields are ignored
WordPress Trac
noreply at wordpress.org
Fri Dec 4 13:56:32 UTC 2015
#34845: Serialized custom fields are ignored
--------------------------+-----------------------------
Reporter: muffingroup | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi guys,
we 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:
$new = wp_slash( $items );
update_post_meta( $post_id, 'mfn-page-items', $new );
And 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.
We attach test, exported .xml file so you can check it yourself.
We would be grateful if you can have a look on it.
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34845>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list