diff --git a/multilingual-options-page.php b/multilingual-options-page.php index fc77fce..c384414 100644 --- a/multilingual-options-page.php +++ b/multilingual-options-page.php @@ -78,6 +78,10 @@ public function acf_location_rules_values($choices) { } public function acf_location_rules_match($match, $rule, $options) { + if (!function_exists('get_current_screen')) { + return; + } + $selected_options_page = $rule['value']; $current_screen = get_current_screen();