Skip to content

Commit

Permalink
Fix plugins marked as compatible when not
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsimoxx committed Dec 5, 2022
1 parent 5cd17ed commit eefaaeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpcompatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: CPcompatibility
* Plugin URI: https://software.gieffeedizioni.it
* Description: Tweaks for working with CP: wpcli compatibility, plugin checks.
* Version: 1.1.3
* Version: 1.1.4
* Requires PHP: 5.6
* Requires CP: 1.0
* License: GPL2
Expand Down
2 changes: 1 addition & 1 deletion inc/popular-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function load_data() {
$data = [];
foreach ($list as $plugin) {
$data[] = [
'compatible' => (preg_match('/^5/', $plugin->requires) === 1) ? 'not' : 'is',
'compatible' => (version_compare($plugin->requires, '5', '<')) ? 'is' : 'not',
'name' => $plugin->name,
'version' => $plugin->version,
'link' => $plugin->homepage,
Expand Down

0 comments on commit eefaaeb

Please sign in to comment.