Make WordPress Core


Ignore:
Timestamp:
02/01/2018 05:16:15 AM (9 years ago)
Author:
dd32
Message:

Plugins: Use api.wordpress.org/plugins/info/1.2/ for querying plugins & plugin information.

See #43192.
Fixes #29274.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r42343 r42631  
    278278        if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) {
    279279                $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version );
    280         } elseif ( isset( $plugin_data->update->compatibility->{$cur_wp_version} ) ) {
    281                 $compat = $plugin_data->update->compatibility->{$cur_wp_version};
    282                 $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes );
    283280        } else {
    284281                $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $cur_wp_version );
     
    288285                if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $core_update_version, '>=' ) ) {
    289286                        $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $core_update_version );
    290                 } elseif ( isset( $plugin_data->update->compatibility->{$core_update_version} ) ) {
    291                         $update_compat = $plugin_data->update->compatibility->{$core_update_version};
    292                         $compat       .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes );
    293287                } else {
    294288                        $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $core_update_version );
Note: See TracChangeset for help on using the changeset viewer.