Skip to content

Commit 2d078cf

Browse files
committed
improve version checking
1 parent 9b148d8 commit 2d078cf

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## WP2Static 7.1.6
2+
3+
- code quality improvements (thanks @szepeviktor)
4+
15
## WP2Static 7.1.5
26

37
- fix PHP version check to 7.3>=

src/ViewRenderer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function renderDiagnosticsPage() : void {
3232
$view['memoryLimit'] = ini_get( 'memory_limit' );
3333
$view['coreOptions'] = CoreOptions::getAll();
3434
$view['site_info'] = SiteInfo::getAllInfo();
35-
$view['phpOutOfDate'] = PHP_VERSION < 7.3;
35+
$view['phpOutOfDate'] = version_compare( PHP_VERSION, '7.3', '<' );
3636
$view['uploadsWritable'] = SiteInfo::isUploadsWritable();
3737
$view['maxExecutionTime'] = ini_get( 'max_execution_time' );
3838
$view['curlSupported'] = SiteInfo::hasCURLSupport();

wp2static.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WP2Static
44
* Plugin URI: https://wp2static.com
55
* Description: Static site generator functionality for WordPress.
6-
* Version: 7.1.5-dev
6+
* Version: 7.1.6-dev
77
* Author: WP2Static
88
* Author URI: https://wp2static.com
99
* Text Domain: wp2static
@@ -15,7 +15,7 @@
1515
die;
1616
}
1717

18-
define( 'WP2STATIC_VERSION', '7.1.5-dev' );
18+
define( 'WP2STATIC_VERSION', '7.1.6-dev' );
1919
define( 'WP2STATIC_PATH', plugin_dir_path( __FILE__ ) );
2020

2121
if ( file_exists( WP2STATIC_PATH . 'vendor/autoload.php' ) ) {

0 commit comments

Comments
 (0)