babble icon indicating copy to clipboard operation
babble copied to clipboard

locale filter doesn't always return the language

Open markoheijnen opened this issue 10 years ago • 2 comments

Due commit ffb11655a0db73534be23c73b24f988f1184a01b things got broken because of interface_lang vs content_lang. in class-locale.php you see cases where the is_admin() check is commented.

Current situation is that language_attributes() returns the incorrect language code because it's setting the content_lang but only interface_lang is returned.

markoheijnen avatar May 21 '14 12:05 markoheijnen

@johnbillion can commenting out of $this->content_lang also be for debugging purposes?

markoheijnen avatar Jun 06 '14 18:06 markoheijnen

This has now become a blocker for me. Uncommenting the lines does seem to work for me.

markoheijnen avatar Aug 11 '14 14:08 markoheijnen