Changeset 42631 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 02/01/2018 05:16:15 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/update-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r42343 r42631 278 278 if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) { 279 279 $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 );283 280 } else { 284 281 $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $cur_wp_version ); … … 288 285 if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $core_update_version, '>=' ) ) { 289 286 $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 );293 287 } else { 294 288 $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $core_update_version );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)