Skip to content

Commit

Permalink
Fix version_compare() operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored May 22, 2019
1 parent a1c26de commit 467851f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
/**
* Ensure compatible version of PHP is used
*/
if (version_compare('7.1.3', phpversion(), '<')) {
if (version_compare('7.1.3', phpversion(), '>')) {
$sage_error(__('You must be using PHP 7.1.3 or greater.', 'sage'), __('Invalid PHP version', 'sage'));
}

/**
* Ensure compatible version of WordPress is used
*/
if (version_compare('5.2', get_bloginfo('version'), '<')) {
if (version_compare('5.2', get_bloginfo('version'), '>')) {
$sage_error(__('You must be using WordPress 5.2 or greater.', 'sage'), __('Invalid WordPress version', 'sage'));
}

Expand Down

0 comments on commit 467851f

Please sign in to comment.