In turnstile 1.1.25, the "Drupal User's Chosen Language" option at /admin/config/people/captcha/turnstile is not applied.
In turnstile_captcha(), the code assigns the resolved language to $langcode, but the widget uses $language for data-language.
So the selected option is not used correctly.
Proposed fix: assign the value to $language instead.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3582598-user-preferred-language.patch | 609 bytes | ekolmyk |
Comments
Comment #2
ekolmyk commentedComment #3
ekolmyk commentedComment #5
greatmatter commentedGreat catch, and thank you for providing the fix. It's been committed, and released to 1.1.26.
Comment #7
greatmatter commented