Set Language
-
Hi,
in shariff.php:910-933 (https://github.com/3UU/wordpress-shariff-wrapper/blob/master/shariff/shariff.php#L910) you search for the language.
Wouldn’t it be better to use
get_locale()
if nothing was found? Something likeelse { $get_locale = get_locale(); !empty($get_locale) ? $lang = substr($get_locale, -2) : ''; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Set Language’ is closed to new replies.