Can you please help me understand this code?
$turl = get_bloginfo('home');
if ( $lang_current == "en" OR "ru" ) {
$location = str_replace ($turl,$turl."/".$lang_current,$location);
}
return $location;
I don’t understand why, even if $lang_current == "ka" Why do I still get str_replace activated?
I’m expecting this code str_replace to work only when languages are en or ru, if any other language is used I need it just to return $location… but this is not what happens! It is driving me nuts as I don’t understand it.
“ru” is always true… you need to put
or: