- ステータス
- 解決済み
- 関連するプラグイン/テーマ
- RealHomes
問題の概要
新規投稿を作成するか既存の投稿を編集すると、右サイドバーからWPMLの言語タブのコンテンツが消え、0のみが表示されます。
回避策
以下の回避策を実行する前に、ウェブサイトのバックアップを作成してください。
- wp-content/themes/realhomes/framework/functions/design-variations-handler.phpファイルを開きます。
- 以下のスニペットを:
$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 ); }次の内容に置き換えます。
$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 ); }