Skip to content

Commit

Permalink
Fix version_compare() comparison operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored and QWp6t committed Jun 12, 2019
1 parent cf15e45 commit 25cf772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 25cf772

Please sign in to comment.