Make WordPress Core

Ticket #27883: 27883.3.diff

File 27883.3.diff, 1.6 KB (added by MikeHansenMe, 12 years ago)
  • src/wp-admin/update-core.php

     
    256256                }
    257257                // Get plugin compat for updated version of WordPress.
    258258                if ( $core_update_version ) {
    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] );
    262264                        } else {
    263                                 $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
     265                                $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $core_update_version );
    264266                        }
    265267                }
    266268                // Get the upgrade notice for the new plugin version.