Overview of the Issue
When you create a new post or edit an existing one, the WPML language tab content disappears from the right sidebar and displays only a 0.
Workaround
This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.
Please back up your website before proceeding with the following workaround:
- Open the wp-content/themes/realhomes/framework/functions/design-variations-handler.php file
- Replace the following snippet:
$wpml_current_lang = apply_filters( 'wpml_current_language', null ); if ( $wpml_current_lang ) { $ajax_url = add_query_arg( 'wpml_lang', $wpml_current_lang, $ajax_url ); }With this:
$wpml_current_lang = apply_filters( 'wpml_current_language', null ); if ( $wpml_current_lang && ! is_admin() ) { $ajax_url = add_query_arg( 'wpml_lang', $wpml_current_lang, $ajax_url ); }