WPML
ステータス
未解決
報告対象
WPML Multilingual CMS 4.8.0
トピックタグ
Bug

問題の概要

Bricksビルダーでメディアアイテムを含む投稿を保存する際、「Error on save: HTTP code 200」が表示される場合があります

回避策

開発チームは現在この問題に取り組んでいます。

コードによる回避策を実行する前に、必ずバックアップを作成してください。

回避策を適用するには、/wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.phpを開きます。
次の行の後に、

$lang     = $this->sitepress->get_language_for_element( $post->ID, 'post_' . $post->post_type );

次の条件を追加します。
if ($lang == NULL) {
   $not_revision = get_post_parent($post->ID);
   $lang = $this->sitepress->get_language_for_element( $not_revision->ID, 'post_' . $post->post_type );
}

すべての既知の問題 →