diff --git a/src/img-optm.cls.php b/src/img-optm.cls.php index ef96f98eb..c6f6c30bc 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')) { + 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();