| 249 | | if ( isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=') ) { |
| 250 | | $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version); |
| 251 | | } elseif ( isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version]) ) { |
| 252 | | $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version]; |
| 253 | | $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]); |
| | 249 | if ( isset( $info->tested ) && version_compare( $info->tested, $cur_wp_version, '>=' ) ) { |
| | 250 | $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version ); |
| | 251 | } elseif ( isset( $info->compatibility[ $cur_wp_version ][ $plugin_data->update->new_version ] ) ) { |
| | 252 | $compat = $info->compatibility[ $cur_wp_version ][ $plugin_data->update->new_version ]; |
| | 253 | $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $cur_wp_version, $compat[0], $compat[2], $compat[1] ); |
| 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( isset( $info->tested ) && 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] ); |