Skip to content

Commit eefaaeb

Browse files
committed
Fix plugins marked as compatible when not
1 parent 5cd17ed commit eefaaeb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpcompatibility.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: CPcompatibility
44
* Plugin URI: https://software.gieffeedizioni.it
55
* Description: Tweaks for working with CP: wpcli compatibility, plugin checks.
6-
* Version: 1.1.3
6+
* Version: 1.1.4
77
* Requires PHP: 5.6
88
* Requires CP: 1.0
99
* License: GPL2

inc/popular-menu.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function load_data() {
131131
$data = [];
132132
foreach ($list as $plugin) {
133133
$data[] = [
134-
'compatible' => (preg_match('/^5/', $plugin->requires) === 1) ? 'not' : 'is',
134+
'compatible' => (version_compare($plugin->requires, '5', '<')) ? 'is' : 'not',
135135
'name' => $plugin->name,
136136
'version' => $plugin->version,
137137
'link' => $plugin->homepage,

0 commit comments

Comments
 (0)