Fix: Polylang variable error

This commit is contained in:
root 2023-07-07 17:26:33 +02:00
parent cdfe2f63d7
commit e5581e2836

View File

@ -833,7 +833,7 @@ if (!class_exists('Soundmap')){
function soinumapa_rest_marker_by_language($args) {
global $polylang;
$language = $polylang->curlang->slug;
if (isset($polylang)) $language = $polylang->curlang->slug;
if (isset($language)) { $args['lang'] = $language; }
return $args;
}