You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of "static $locale_lang;" in qtranxf_localeForCurrentLanguage() makes that function incompatible with the WordPress switch_to_locale() feature.
To Reproduce
Steps to reproduce the behavior:
Call get_locale().
Use switch_to_locale() to switch to a different locale().
Call get_locale().
Because of the "static $locale_lang;" in the qtranxf_localeForCurrentLanguage() filter, get_locale() will always return the old locale (because of the static variable in that filter).
Expected behavior
get_locale() should return the new locale after switching locales.
Screenshots
Debug info
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
The use of "static $locale_lang;" in qtranxf_localeForCurrentLanguage() makes that function incompatible with the WordPress switch_to_locale() feature.
To Reproduce
Steps to reproduce the behavior:
Because of the "static $locale_lang;" in the qtranxf_localeForCurrentLanguage() filter, get_locale() will always return the old locale (because of the static variable in that filter).
Expected behavior
get_locale() should return the new locale after switching locales.
Screenshots
Debug info
Additional context
The text was updated successfully, but these errors were encountered: