From 4d95f08f03a308d140750c0cd5671d522a954799 Mon Sep 17 00:00:00 2001 From: tynanbe Date: Tue, 2 Jan 2024 14:15:45 -0600 Subject: [PATCH] Revise version_compare --- src/img-optm.cls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/img-optm.cls.php b/src/img-optm.cls.php index c6f6c30bc..f31032e49 100644 --- a/src/img-optm.cls.php +++ b/src/img-optm.cls.php @@ -1134,7 +1134,7 @@ public function pull($manual = false) $total_pulled_ori++; }; - if (class_exists('\WpOrg\Requests\Requests') && class_exists('\WpOrg\Requests\Autoload') && !version_compare(PHP_VERSION, '5.6.0', '<')) { + if (class_exists('\WpOrg\Requests\Requests') && class_exists('\WpOrg\Requests\Autoload') && version_compare(PHP_VERSION, '5.6.0', '>=')) { // Make sure Requests can load internal classes. Autoload::register();