← All changes
|
includes/contact-segmentation/operators/ends-with.php
+4
-0
1.1.0
→
2.7.0
View file →
| @@ -45,10 +45,12 @@ | ||
| 45 | 45 | 'utm-content', |
| 46 | 46 | 'utm-term', |
| 47 | 47 | 'referral-source-url', |
| 48 | 48 | 'billing-city', |
| 49 | + 'billing-city-checkout', | |
| 49 | 50 | 'shipping-city', |
| 50 | 51 | 'visitor-city', |
| 52 | + 'url-query-string', | |
| 51 | 53 | ]; |
| 52 | 54 | } |
| 53 | 55 | |
| 54 | 56 | /** |
| @@ -58,8 +60,10 @@ | ||
| 58 | 60 | * @param mixed $value mixed The value of current value. |
| 59 | 61 | * @param mixed $condition_value The value of condition input. |
| 60 | 62 | */ |
| 61 | 63 | public function is_valid( $value, $condition_value ) { |
| 64 | + $value = strtolower( $value ); | |
| 65 | + $condition_value = strtolower( $condition_value ); | |
| 62 | 66 | if ( str_ends_with( $value, $condition_value ) ) { |
| 63 | 67 | return true; |
| 64 | 68 | } |
| 65 | 69 | |