Ajax & Polylang_Core::curlang
-
Hi,
awesome plugin! Though after struggeling with ajax & polylang, I may have found an issue.
Setup:
Two languages (de,en), default is de.
Pretty links are on.The ajax request:
admin-ajax.php?action=…&pll_load_front=true&lang=enIssue:
Polylang_Core::curlang after setup_theme() points to ‘de’, so pll_current_language() fails & the wrong lang id is injected to WPs SQL strings.What seems to be a solution is to add yours & g100g’s ajax check to the regex switch in Polylang_Core:setup_theme, line 233, so the second regex is triggered.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Ajax & Polylang_Core::curlang’ is closed to new replies.