diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
index 33276d26fa..8a4105a7f0 100644
|
|
function wp_ajax_update_theme() { |
3485 | 3485 | $status = array( |
3486 | 3486 | 'update' => 'theme', |
3487 | 3487 | 'slug' => $stylesheet, |
| 3488 | 'oldVersion' => '', |
3488 | 3489 | 'newVersion' => '', |
3489 | 3490 | ); |
3490 | 3491 | |
… |
… |
function wp_ajax_update_theme() { |
3493 | 3494 | wp_send_json_error( $status ); |
3494 | 3495 | } |
3495 | 3496 | |
| 3497 | $theme = wp_get_theme( $stylesheet ); |
| 3498 | |
| 3499 | if ( $theme->exists() ) { |
| 3500 | $status['oldVersion'] = $theme->get('Version'); |
| 3501 | } |
| 3502 | |
3496 | 3503 | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
3497 | 3504 | |
3498 | 3505 | $current = get_site_transient( 'update_themes' ); |