Resolved
Reported for: WPML Multilingual CMS 4.6.7
Resolved in: WPML 4.6.8
Overview of the issue
With WPML 4.6.7, users are unable to view the latest updates when they use the Preview feature for a page or post. The preview displays older content instead of reflecting the most recent changes made.
Workaround
Please, make sure of having a full backup of your site before proceeding.
- Open …/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Review/ReviewTranslation.php file.
- Look for line 40.
- Comment it out:
//remove_filter( 'the_preview', '_set_preview' );
Perfect! That fixed the problem!
I can also confirm that this fix works on 10+ websites. Preview feature now works as intended.
We are glad to know that it works, it should be fixed in an upcoming release.
We will keep this erratum updated.
Regards
While this looks like a working fix, we ran into another issue, when having this line commented out.
It looks like that duplicates are no longer maintained correctly. When changing the original content, the duplicated content is not updated anymore. Replicating this case when the code is not commented out, it works.
Thank you for your report, I’ve already passed this information to our devs. However, it would very helpful if you open a report as well in our assistance, in that way, we will be able to better investigate this side effect.
Thank you for your help!