Upgrader: Deprecate a few mostly unused functions, wp_update_plugin(), wp_update_theme(), and, wp_update_core().

wp_update_core() was still used, as it was never updated to make use of the newer Skins. Fixes #21874


git-svn-id: https://develop.svn.wordpress.org/trunk@25307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2013-09-09 06:44:25 +00:00
parent fb20ed8b5b
commit 30827b47c1
4 changed files with 70 additions and 32 deletions
+6 -1
View File
@@ -314,6 +314,8 @@ function list_theme_updates() {
function do_core_upgrade( $reinstall = false ) {
global $wp_filesystem;
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
if ( $reinstall )
$url = 'update-core.php?action=do-core-reinstall';
else
@@ -347,7 +349,10 @@ function do_core_upgrade( $reinstall = false ) {
if ( $reinstall )
$update->response = 'reinstall';
$result = wp_update_core($update, 'show_message');
add_filter( 'update_feedback', 'show_message' );
$upgrader = new Core_Upgrader();
$result = $upgrader->upgrade( $update );
if ( is_wp_error($result) ) {
show_message($result);