From 26fdef8b29784fbaedf22cf1281255d5807a8092 Mon Sep 17 00:00:00 2001 From: Aashish Date: Mon, 11 Nov 2024 16:48:00 +0700 Subject: [PATCH] whitelist /cart endpoint for capability API. --- includes/class-omise-capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-omise-capabilities.php b/includes/class-omise-capabilities.php index 1dcda951..4de958a7 100644 --- a/includes/class-omise-capabilities.php +++ b/includes/class-omise-capabilities.php @@ -98,7 +98,7 @@ public static function isFromCheckoutPage() return false; } - $endpoints = ['checkout', 'batch', 'cart/select-shipping-rate']; + $endpoints = ['checkout', 'batch', 'cart', 'cart/select-shipping-rate']; foreach($endpoints as $endpoint) { if (trim($wp->request) !== '') {