WPML Fix for wpml users

Upgrading your wpml?

In wpml version 2.3.4 the following fix is required in order for custom fields (included those used in amr-events) to be copied correctly.   (Note: I am not a fan of modifying source code as this may take you out of the upgrade path.  However this change is required for wpml to work correctly.  Hopefully they will include it in the next upgrade.)

Folder: sitepress-multilingual-cms

File: sitepress.class.php 

Line (in version 2.3.4): 2675

 update_post_meta($post_id, $meta_key, $meta_value);

Change to:

foreach ($meta_value as $i=>$v) {  
    $v = maybe_unserialize ($v);
    update_post_meta($post_id, $meta_key, $v);

For further information see: