From e12e1e5831d658bf007810ada37fceeb3940b66e Mon Sep 17 00:00:00 2001 From: Tim Greller Date: Wed, 25 Feb 2026 14:04:48 +0100 Subject: [PATCH] abstract acf location does not throw a warning if the value isn't set for a field group. --- includes/locations/abstract-acf-location.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/locations/abstract-acf-location.php b/includes/locations/abstract-acf-location.php index 10b09bc5..8b17de9f 100644 --- a/includes/locations/abstract-acf-location.php +++ b/includes/locations/abstract-acf-location.php @@ -180,6 +180,10 @@ public function match( $rule, $screen, $field_group ) { * @return boolean */ public function compare_to_rule( $value, $rule ) { + if ( !isset($rule['value']) ) { + return false; + } + $result = ( $value == $rule['value'] ); // Allow "all" to match any value.