• 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=en

    Issue:
    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.

    http://ww.wp.xz.cn/extend/plugins/polylang/

The topic ‘Ajax & Polylang_Core::curlang’ is closed to new replies.