- 상태
- 미해결
- 보고된 제품
- 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 );
}