Version Description
- Fixed bug with active job display.
- Updated progress bar calculation.
Download this release
Release Info
Developer | wpengine |
Plugin | PHP Compatibility Checker |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- readme.txt +8 -5
- src/wpephpcompat.php +3 -1
- wpengine-phpcompat.php +6 -5
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wpengine, octalmage, stevenkword, taylor4484
|
|
3 |
Tags: php 7, php 5.5, php, version, compatibility, checker, wp engine, wpe, wpengine
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.5
|
6 |
-
Stable tag: 1.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -112,6 +112,10 @@ To disclose security issues for this plugin please email WordPress@wpengine.com
|
|
112 |
|
113 |
== Changelog ==
|
114 |
|
|
|
|
|
|
|
|
|
115 |
= 1.1.0 =
|
116 |
- Test results now persist page reloads.
|
117 |
- Failed tests will show an overview of the results.
|
@@ -143,7 +147,6 @@ To disclose security issues for this plugin please email WordPress@wpengine.com
|
|
143 |
|
144 |
== Upgrade Notice ==
|
145 |
|
146 |
-
= 1.1.
|
147 |
-
-
|
148 |
-
-
|
149 |
-
- The scan timeout is now configurable using a filter. See the FAQ for more details.
|
3 |
Tags: php 7, php 5.5, php, version, compatibility, checker, wp engine, wpe, wpengine
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.5
|
6 |
+
Stable tag: 1.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
112 |
|
113 |
== Changelog ==
|
114 |
|
115 |
+
= 1.1.1 =
|
116 |
+
- Fixed bug with active job display.
|
117 |
+
- Updated progress bar calculation.
|
118 |
+
|
119 |
= 1.1.0 =
|
120 |
- Test results now persist page reloads.
|
121 |
- Failed tests will show an overview of the results.
|
147 |
|
148 |
== Upgrade Notice ==
|
149 |
|
150 |
+
= 1.1.1 =
|
151 |
+
- Fixed bug with active job display.
|
152 |
+
- Updated progress bar calculation.
|
|
src/wpephpcompat.php
CHANGED
@@ -155,7 +155,9 @@ class WPEPHPCompat {
|
|
155 |
|
156 |
$args = array(
|
157 |
'posts_per_page' => -1,
|
158 |
-
'post_type' => 'wpephpcompat_jobs'
|
|
|
|
|
159 |
);
|
160 |
$directories = get_posts( $args );
|
161 |
$this->debug_log( count( $directories ) . ' plugins left to process.' );
|
155 |
|
156 |
$args = array(
|
157 |
'posts_per_page' => -1,
|
158 |
+
'post_type' => 'wpephpcompat_jobs',
|
159 |
+
'orderby' => 'title',
|
160 |
+
'order' => 'ASC',
|
161 |
);
|
162 |
$directories = get_posts( $args );
|
163 |
$this->debug_log( count( $directories ) . ' plugins left to process.' );
|
wpengine-phpcompat.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: PHP Compatibility Checker
|
|
4 |
Plugin URI: https://wpengine.com
|
5 |
Description: Make sure your plugins and themes are compatible with newer PHP versions.
|
6 |
Author: WP Engine
|
7 |
-
Version: 1.1.
|
8 |
Author URI: https://wpengine.com
|
9 |
*/
|
10 |
|
@@ -110,8 +110,10 @@ class WPEngine_PHPCompat {
|
|
110 |
|
111 |
$active_job = false;
|
112 |
$jobs = get_posts( array(
|
113 |
-
'posts_per_page'
|
114 |
-
'post_type'
|
|
|
|
|
115 |
) );
|
116 |
|
117 |
if ( 0 < count( $jobs ) ) {
|
@@ -130,8 +132,7 @@ class WPEngine_PHPCompat {
|
|
130 |
// If the scan is still running.
|
131 |
if ( $scan_status ) {
|
132 |
$to_encode['results'] = '0';
|
133 |
-
|
134 |
-
$to_encode['progress'] = 100 - ( ( ( $count_jobs->publish + 1 ) / $total_jobs ) * 100 );
|
135 |
} else {
|
136 |
// Else return the results and clean up!
|
137 |
$scan_results = get_option( 'wpephpcompat.scan_results' );
|
4 |
Plugin URI: https://wpengine.com
|
5 |
Description: Make sure your plugins and themes are compatible with newer PHP versions.
|
6 |
Author: WP Engine
|
7 |
+
Version: 1.1.1
|
8 |
Author URI: https://wpengine.com
|
9 |
*/
|
10 |
|
110 |
|
111 |
$active_job = false;
|
112 |
$jobs = get_posts( array(
|
113 |
+
'posts_per_page' => -1,
|
114 |
+
'post_type' => 'wpephpcompat_jobs',
|
115 |
+
'orderby' => 'title',
|
116 |
+
'order' => 'ASC',
|
117 |
) );
|
118 |
|
119 |
if ( 0 < count( $jobs ) ) {
|
132 |
// If the scan is still running.
|
133 |
if ( $scan_status ) {
|
134 |
$to_encode['results'] = '0';
|
135 |
+
$to_encode['progress'] = ( ( $total_jobs - $count_jobs->publish ) / $total_jobs) * 100;
|
|
|
136 |
} else {
|
137 |
// Else return the results and clean up!
|
138 |
$scan_results = get_option( 'wpephpcompat.scan_results' );
|