From af2613b89891fadabc0f2ec2f60939e7be20dc62 Mon Sep 17 00:00:00 2001 From: kagg-design Date: Wed, 6 Nov 2024 17:18:56 +0200 Subject: [PATCH] Fixed open_basedir restriction warning in Query Monitor. --- readme.txt | 1 + src/php/Helpers/HCaptcha.php | 4 ++-- src/php/Helpers/Minify/CSS.php | 36 ++++++++++++++++++++++++++++++++++ src/php/Helpers/Minify/JS.php | 36 ++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 src/php/Helpers/Minify/CSS.php create mode 100644 src/php/Helpers/Minify/JS.php diff --git a/readme.txt b/readme.txt index f1999bfd..a86f712b 100644 --- a/readme.txt +++ b/readme.txt @@ -588,6 +588,7 @@ Instructions for popular native integrations are below: * Fixed inability to deactivate Avada theme right after activation. * Fixed inability to deactivate Divi theme right after activation. * Fixed error on plugin activation when plugin makes redirect on activation. +* Fixed open_basedir restriction warning in Query Monitor. * Tested with WordPress 6.7. * Tested with WooCommerce 9.3. diff --git a/src/php/Helpers/HCaptcha.php b/src/php/Helpers/HCaptcha.php index 83c9dfa0..090c6a54 100644 --- a/src/php/Helpers/HCaptcha.php +++ b/src/php/Helpers/HCaptcha.php @@ -12,8 +12,8 @@ namespace HCaptcha\Helpers; -use HCaptcha\Vendors\MatthiasMullie\Minify\CSS; -use HCaptcha\Vendors\MatthiasMullie\Minify\JS; +use HCaptcha\Helpers\Minify\CSS; +use HCaptcha\Helpers\Minify\JS; use WP_Error; /** diff --git a/src/php/Helpers/Minify/CSS.php b/src/php/Helpers/Minify/CSS.php new file mode 100644 index 00000000..de9288c4 --- /dev/null +++ b/src/php/Helpers/Minify/CSS.php @@ -0,0 +1,36 @@ +