WPML

문제 개요

The Events Calendar (TEC) 플러그인을 사용하고 WPML을 언어당 개별 도메인으로 구성한 웹사이트에서는 언어를 전환할 때 이벤트 링크에 잘못된 URL이 표시될 수 있습니다.

임시 해결 방법

진행하기 전에 반드시 사이트를 전체 백업하세요.

  • …/wp-content/plugins/events-calendar-pro/src/Events_Pro/Custom_Tables/V1/Integrations/WPML/WPML_Integration.php 파일을 여세요.
  • 97번째 줄을 찾으세요.
  • 변경 전:
    // Remove the home URL from permalink.
    $post_link = str_replace( array( home_url( '/' ), site_url( '/' ) ), '', $post_link );
  • 변경 후:
    // Remove the home URL from permalink.
    $post_link = str_replace( array( home_url( '/' ), site_url( '/' ), get_option( 'home' ) ), '', $post_link );

모든 알려진 문제