[wp-trac] [WordPress Trac] #34845: Serialized custom fields are ignored on import (was: Serialized custom fields are ignored)

WordPress Trac noreply at wordpress.org
Fri Dec 4 14:21:33 UTC 2015


#34845: Serialized custom fields are ignored on import
--------------------------+----------------------------
 Reporter:  muffingroup   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  WordPress.org
Component:  Import        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+----------------------------
Changes (by SergeyBiryukov):

 * component:  General => Import
 * milestone:  Awaiting Review => WordPress.org


Old description:

> 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!

New description:

 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#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list