diff --git a/multilingual-options-page.php b/multilingual-options-page.php index f891677..fc77fce 100644 --- a/multilingual-options-page.php +++ b/multilingual-options-page.php @@ -79,6 +79,12 @@ public function acf_location_rules_values($choices) { public function acf_location_rules_match($match, $rule, $options) { $selected_options_page = $rule['value']; + $current_screen = get_current_screen(); + + if (empty($current_screen)) { + return; + } + $current_screen_id = get_current_screen()->id; if ($rule['operator'] == "==") {