- 상태
- 해결됨
- 보고된 제품
- WPML Multilingual CMS 3.2.2
- 해결된 버전
- 3.2.3
문제 개요
글의 “This is a translation of”를 “-None-”으로 설정하려고 하면 저장되지 않습니다. 다른 글로만 변경할 수 있습니다.
임시 해결 방법
다음 단계를 따르세요.
- “inc/post-translation/wpml-admin-post-actions.class.php” 파일에서 “save_post_actions” 함수를 찾으세요.
- 다음 코드 블록을 찾으세요:
$trid = isset( $trid ) && $trid ? $trid : $this->get_save_post_trid ( $post_id, $post->post_status ); // after getting the right trid set the source language from it by referring to the root translation // of this trid, in case no proper source language has been set yet $source_language = isset( $source_language ) ? $source_language : $this->get_save_post_source_lang ( $trid, $language_code, $default_language );
- 다음으로 교체하세요:
if ( isset( $post_vars[ 'icl_translation_of' ] ) && $post_vars[ 'icl_translation_of' ] == 'none' ) { $trid = null; $source_language = $language_code; } else { $trid = isset( $trid ) && $trid ? $trid : $this->get_save_post_trid ( $post_id, $post->post_status ); // after getting the right trid set the source language from it by referring to the root translation // of this trid, in case no proper source language has been set yet $source_language = isset( $source_language ) ? $source_language : $this->get_save_post_source_lang ( $trid, $language_code, $default_language ); }
이 문제는 곧 출시될 새 버전에서 해결되었습니다.