Make WordPress Core

Ticket #27883: 27883.diff

File 27883.diff, 1014 bytes (added by collinsinternet, 13 years ago)

Update to update-core.php

  • update-core.php

     
    252252                }
    253253                // Get plugin compat for updated version of WordPress.
    254254                if ( $core_update_version ) {
    255                         if ( isset($info->compatibility[$core_update_version][$plugin_data->update->new_version]) ) {
     255                        if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
     256                            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
     257                        } elseif ( isset($info->compatibility[$core_update_version][$plugin_data->update->new_version]) ) {
    256258                                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
    257259                                $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]);
    258260                        } else {