- ステータス
- 解決済み
- 関連するプラグイン/テーマ
- The Events Calendar
問題の概要
The Events Calendarプラグインを使用しており、アーカイブページに複数のイベントがある場合、セカンダリ言語のページネーションリンクが機能しません。代わりに、リンク先が(/?:page|seite|Seite)/(d_)/や (/?:page|pàgina|página|página)/(d_)のようになります。
回避策
作業を進める前に、必ずサイトの完全なバックアップを作成してください。
- wp-content/plugins/the-events-calendar/src/Tribe/I18n.phpにあるファイルを編集します。
- 189行目を探します。
- 置換前:
remove_filter( 'locale', $force_locale );
- 置換後:
remove_filter( 'locale', $force_locale ); foreach ( (array) $args[1] as $domain => $file ) { // Reload it with the correct language. unload_textdomain( $domain ); if ( 'default' === $domain ) { load_default_textdomain(); } else { Common::instance()->load_text_domain( $domain, $file ); } }
次のステップ
この問題は恒久的な修正に向けてThe Events Calendarチームに報告されています。ただし、彼らのサポートフォーラムでこの修正への関心を表明することが、対応を早める唯一の後押しとなります。