diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
index 9cf0a04ac1..7d24a73839 100644
a
|
b
|
class WP_Automatic_Updater { |
1062 | 1062 | |
1063 | 1063 | foreach ( $failed_updates['plugin'] as $item ) { |
1064 | 1064 | $body[] = sprintf( |
1065 | | /* translators: 1: Plugin name, 2: Version number. */ |
1066 | | __( '- %1$s version %2$s' ), |
| 1065 | /* translators: 1: Plugin name, 2: Current version number, 3: New version number. */ |
| 1066 | __( '- %1$s (from version %2$s to %3$s)' ), |
1067 | 1067 | $item->name, |
| 1068 | $item->item->current_version, |
1068 | 1069 | $item->item->new_version |
1069 | 1070 | ); |
1070 | 1071 | |
… |
… |
class WP_Automatic_Updater { |
1080 | 1081 | |
1081 | 1082 | foreach ( $failed_updates['theme'] as $item ) { |
1082 | 1083 | $body[] = sprintf( |
1083 | | /* translators: 1: Theme name, 2: Version number. */ |
1084 | | __( '- %1$s version %2$s' ), |
| 1084 | /* translators: 1: Theme name, 2: Current version number, 3: New version number. */ |
| 1085 | __( '- %1$s (from version %2$s to %3$s)' ), |
1085 | 1086 | $item->name, |
| 1087 | $item->item->current_version, |
1086 | 1088 | $item->item->new_version |
1087 | 1089 | ); |
1088 | 1090 | |
… |
… |
class WP_Automatic_Updater { |
1103 | 1105 | |
1104 | 1106 | foreach ( $successful_updates['plugin'] as $item ) { |
1105 | 1107 | $body[] = sprintf( |
1106 | | /* translators: 1: Plugin name, 2: Version number. */ |
1107 | | __( '- %1$s version %2$s' ), |
| 1108 | /* translators: 1: Plugin name, 2: Current version number, 3: New version number. */ |
| 1109 | __( '- %1$s (from version %2$s to %3$s)' ), |
1108 | 1110 | $item->name, |
| 1111 | $item->item->current_version, |
1109 | 1112 | $item->item->new_version |
1110 | 1113 | ); |
1111 | 1114 | |
… |
… |
class WP_Automatic_Updater { |
1121 | 1124 | |
1122 | 1125 | foreach ( $successful_updates['theme'] as $item ) { |
1123 | 1126 | $body[] = sprintf( |
1124 | | /* translators: 1: Theme name, 2: Version number. */ |
1125 | | __( '- %1$s version %2$s' ), |
| 1127 | /* translators: 1: Theme name, 2: Current version number, 3: New version number. */ |
| 1128 | __( '- %1$s (from version %2$s to %3$s)' ), |
1126 | 1129 | $item->name, |
| 1130 | $item->item->current_version, |
1127 | 1131 | $item->item->new_version |
1128 | 1132 | ); |
1129 | 1133 | |
diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php
index a5df68a40f..6d6fe59046 100644
a
|
b
|
function wp_update_plugins( $extra_stats = array() ) { |
414 | 414 | foreach ( $response['plugins'] as &$plugin ) { |
415 | 415 | $plugin = (object) $plugin; |
416 | 416 | |
| 417 | $plugin->current_version = _x( 'N/A', 'Plugin current version' ); |
| 418 | |
| 419 | if ( isset( $plugins[ $plugin->plugin ] ) ) { |
| 420 | $plugin->current_version = $plugins[ $plugin->plugin ]['Version']; |
| 421 | } |
| 422 | |
417 | 423 | if ( isset( $plugin->compatibility ) ) { |
418 | 424 | $plugin->compatibility = (object) $plugin->compatibility; |
419 | 425 | |
… |
… |
function wp_update_themes( $extra_stats = array() ) { |
620 | 626 | $response = json_decode( wp_remote_retrieve_body( $raw_response ), true ); |
621 | 627 | |
622 | 628 | if ( is_array( $response ) ) { |
| 629 | foreach ( $response['themes'] as &$theme ) { |
| 630 | $theme['current_version'] = _x( 'N/A', 'Theme current version' ); |
| 631 | |
| 632 | if ( isset( $themes[ $theme['theme'] ] ) ) { |
| 633 | $theme['current_version'] = $themes[ $theme['theme'] ]['Version']; |
| 634 | } |
| 635 | } |
| 636 | unset( $theme ); |
| 637 | |
623 | 638 | $new_update->response = $response['themes']; |
624 | 639 | $new_update->no_update = $response['no_update']; |
625 | 640 | $new_update->translations = $response['translations']; |