From 54f325cac252b6fa0366c470cd90383bc8065832 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Fri, 4 Oct 2024 11:04:15 +0200 Subject: [PATCH 1/3] Do not scope WCS_Retry_Manager --- scoper.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scoper.inc.php b/scoper.inc.php index ccb1eb52..25e761d6 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -55,7 +55,8 @@ 'Automattic', '^WooCommerce', 'Inpsyde\Assets', - 'Mollie' + 'Mollie', + '^WCS_Retry_Manager' ], // list 'exclude-constants' => array_merge($wp_constants, [ 'WC_VERSION', From 869c5caecff0b49dcebf107a0ab9935b7071ea2f Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Tue, 8 Oct 2024 12:27:57 +0200 Subject: [PATCH 2/3] Scope the class --- scoper.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scoper.inc.php b/scoper.inc.php index 25e761d6..ffab50e8 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -56,7 +56,6 @@ '^WooCommerce', 'Inpsyde\Assets', 'Mollie', - '^WCS_Retry_Manager' ], // list 'exclude-constants' => array_merge($wp_constants, [ 'WC_VERSION', @@ -67,6 +66,7 @@ 'exclude-classes' => array_merge($wp_classes, [ 'WooCommerce', '/^WC_/', + '^WCS_Retry_Manager' ]), // list 'exclude-functions' => array_merge($wp_functions, [ '/^wc/', From e248b6868fdfccfee323de4b708b17a35f2413e7 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Tue, 8 Oct 2024 12:33:16 +0200 Subject: [PATCH 3/3] Change naming of the class --- scoper.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scoper.inc.php b/scoper.inc.php index ffab50e8..91b8b402 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -66,7 +66,7 @@ 'exclude-classes' => array_merge($wp_classes, [ 'WooCommerce', '/^WC_/', - '^WCS_Retry_Manager' + '\WCS_Retry_Manager' ]), // list 'exclude-functions' => array_merge($wp_functions, [ '/^wc/',