Skip to content

Commit

Permalink
Proper check version
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsimoxx committed Feb 17, 2021
1 parent 56c1c9b commit 2d19f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/change-plugin-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function cp_plugin_row_meta($links, $file) {

// Check if a plugin is bumped to 999 or alike.
$plugindata = get_plugin_data(WP_PLUGIN_DIR.'/'.$file, false, false);
if (version_compare($plugin_info->{$slug}['requires'], $plugindata['Version'], '<')) {
if (version_compare($plugindata['Version'], $plugin_info->{$slug}['version'], '>')) {
return $links;
}

Expand Down

0 comments on commit 2d19f62

Please sign in to comment.