- 상태
- 해결됨
- 보고된 제품
- WPML Multilingual CMS 4.6.9
- 해결된 버전
- WPML 4.7
- 관련 플러그인/테마
- Salient
- 주제 태그
- Bug, Compatibility
문제 개요
번역된 사이트 버전으로 전환할 때 Salient 테마의 Nectar Slider에 있는 내부 URL이 자동으로 조정되지 않는 문제가 발생할 수 있습니다. 이 문제는 Button Link에 내부 URL이 포함된 Nectar Slider 글을 번역한 후에 발생합니다.
임시 해결 방법
진행하기 전에 사이트의 전체 백업이 있는지 확인하세요.
- …/wp-content/plugins/salient-nectar-slider/includes/frontend/helpers.php 파일을 여세요.
- 814번째 줄을 찾으세요.
- 다음 코드를:
if ( ! empty( $button_1_text ) ) { $button_1_link = ! empty( $button_1_link ) ? $button_1_link : '#'; - 다음과 같이 바꾸세요:
if ( ! empty( $button_1_text ) ) { // WPML Workaround for compsupp-7240 if (class_exists('Sitepress') && ! empty( $button_1_link ) ) { $current_lang = apply_filters( 'wpml_current_language', NULL ); $button_1_link = apply_filters( 'wpml_permalink', $button_1_link, $current_lang, true ); } $button_1_link = ! empty( $button_1_link ) ? $button_1_link : '#';