- 상태
- 해결됨
- 보고된 제품
- WPML Media Translation 2.5.6
- 해결된 버전
- 2.6.0
문제 개요
번역할 여러 이미지가 포함된 페이지를 보낸 후 미디어 라이브러리에서 일부 이미지를 삭제하면 다른 언어로 번역하는 데 문제가 발생할 수 있습니다.
동일한 결과를 발생시킬 수 있는 또 다른 경우는 이미지 캡션 숏코드에 빈 ID가 있는 경우입니다 – 예: .
임시 해결 방법
wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php
다음을:
$new_caption_shortcode = $this->replace_caption_id_with_translated_id( $new_caption_shortcode, $attachment_id, $language );
다음으로 변경하세요:
if ($attachment_id !== NULL) {
$new_caption_shortcode = $this->replace_caption_id_with_translated_id(
$new_caption_shortcode,
$attachment_id,
$language
);
}