diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
index a2e829bf65..a9a09c5e43 100644
a
|
b
|
function wp_ajax_update_theme() { |
3462 | 3462 | $status = array( |
3463 | 3463 | 'update' => 'theme', |
3464 | 3464 | 'slug' => $stylesheet, |
| 3465 | 'oldVersion' => '', |
3465 | 3466 | 'newVersion' => '', |
3466 | 3467 | ); |
3467 | 3468 | |
… |
… |
function wp_ajax_update_theme() { |
3500 | 3501 | wp_send_json_error( $status ); |
3501 | 3502 | } |
3502 | 3503 | |
| 3504 | if ( $upgrader->skin->theme_info->get( 'Version' ) ) { |
| 3505 | $status['oldVersion'] = $upgrader->skin->theme_info->get( 'Version' ); |
| 3506 | } |
| 3507 | |
3503 | 3508 | $theme = wp_get_theme( $stylesheet ); |
3504 | 3509 | if ( $theme->get( 'Version' ) ) { |
3505 | 3510 | $status['newVersion'] = $theme->get( 'Version' ); |