Plugin compatibility is based on your version of WordPress, not your install.

fixes #29313.

git-svn-id: https://develop.svn.wordpress.org/trunk@29581 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-08-24 16:13:54 +00:00
parent 7770a90d74
commit 19a0a5b64f
1 changed files with 3 additions and 3 deletions

View File

@ -452,11 +452,11 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
<div class="column-compatibility">
<?php
if ( ! empty( $plugin['tested'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) {
echo __( '<strong>Untested</strong> with your install ');
echo __( '<strong>Untested</strong> with your version of WordPress' );
} elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) {
echo __( '<strong>Incompatible</strong> with your install ');
echo __( '<strong>Incompatible</strong> with your version of WordPress' );
} else {
echo __( '<strong>Compatible</strong> with your install ');
echo __( '<strong>Compatible</strong> with your version of WordPress' );
}
?>
</div>