Fix: Polylang variable error
This commit is contained in:
parent
cdfe2f63d7
commit
e5581e2836
@ -833,7 +833,7 @@ if (!class_exists('Soundmap')){
|
|||||||
|
|
||||||
function soinumapa_rest_marker_by_language($args) {
|
function soinumapa_rest_marker_by_language($args) {
|
||||||
global $polylang;
|
global $polylang;
|
||||||
$language = $polylang->curlang->slug;
|
if (isset($polylang)) $language = $polylang->curlang->slug;
|
||||||
if (isset($language)) { $args['lang'] = $language; }
|
if (isset($language)) { $args['lang'] = $language; }
|
||||||
return $args;
|
return $args;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user