| 259 | | if ( isset($info->compatibility[$core_update_version][$plugin_data->update->new_version]) ) { |
| 260 | | $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version]; |
| 261 | | $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]); |
| | 259 | if( version_compare( $info->tested, $core_update_version, '>=' ) ) { |
| | 260 | $compat = '<br />' . sprintf(__( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $core_update_version); |
| | 261 | } elseif ( isset( $info->compatibility[ $core_update_version ][ $plugin_data->update->new_version ] ) { |
| | 262 | $update_compat = $info->compatibility[ $core_update_version ][ $plugin_data->update->new_version ]; |
| | 263 | $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1] ); |