From 2f6ed79c77bbfcfe87f212b5e5296c479cae0566 Mon Sep 17 00:00:00 2001 From: Rahul Taiwala Date: Wed, 8 Feb 2023 12:38:41 +0530 Subject: [PATCH] For this to work for all values for this to work for all values when the user wants to get all values irrespective of the value selected in the rule --- includes/locations/abstract-acf-location.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/locations/abstract-acf-location.php b/includes/locations/abstract-acf-location.php index 8446fb1c..28914e59 100644 --- a/includes/locations/abstract-acf-location.php +++ b/includes/locations/abstract-acf-location.php @@ -175,7 +175,7 @@ public function compare_to_rule( $value, $rule ) { $result = ( $value == $rule['value'] ); // Allow "all" to match any value. - if ( $rule['value'] === 'all' ) { + if ( $value === 'all' ) { $result = true; }