- 상태
- 해결됨
- 해결된 버전
- 4.2.7
문제 개요
숫자로만 구성된 슬러그를 가진 카테고리가 있는 경우 리디렉션 루프가 발생할 수 있습니다.
예를 들어, http://example.com/category/1234/는 자기 자신으로 302 리디렉션될 수 있습니다.
임시 해결 방법
../wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering 폴더에 있는 class-wpml-query-parser.php 파일을 편집하세요.
maybe_redirect_to_translated_taxonomy() 함수를 찾으세요.
다음 코드를:
if ( $translated_slugs && $slug !== $translated_slugs[0] ) {
다음과 같이 변경하세요:
if ( $translated_slugs && $slug != $translated_slugs[0] ) {