mundschenk-at / wp-typography

Improve your WordPress micro typography.

Home Page:https://code.mundschenk.at/wp-typography/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect detection of locales without country code

mundschenk-at opened this issue · comments

Some WordPress locales consist only of a language code, e.g. fi, not a language and country code like en_US. The Multilingual_Support::get_current_locale() method fails to properly detect those.

First reported by vanuch in the WordPress support forums.