- 상태
- 해결됨
- 보고된 제품
- WPML Multilingual CMS 4.4.8
- 해결된 버전
- 4.4.9
문제 개요
일부 경우, 슬러그가 비슷한 글과 페이지에 잘못된 콘텐츠가 표시될 수 있습니다.
예를 들어, http://example.com/book/title/에 콘텐츠가 있는 Books라는 글 유형이 있고 동일한 슬러그를 가진 글(http://example.com/title/)도 있는 경우, 해당 URL을 방문할 때 잘못된 콘텐츠가 표시됩니다.
임시 해결 방법
개발팀에서 이 문제를 수정 중입니다.
임시 해결 방법:
- plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-404-guess.php 파일의 36번 줄로 이동하세요.
- 다음 코드를
public function guess_cpt_by_name( $name, $query ) { $type = $query->get( 'post_type' ); $ret = array( $name, $type, false ); - 다음과 같이 변경하세요.
public function guess_cpt_by_name( $name, $query ) { $type = $query->get( 'post_type' ); if (empty($type)) { $type = !empty($query->get( 'pagename' )) ? 'page' : 'post'; } $ret = array( $name, $type, false );