Skip to content

Commit

Permalink
Revise version_compare
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanbe committed Jan 2, 2024
1 parent 3b21b38 commit 4d95f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/img-optm.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 4d95f08

Please sign in to comment.