mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user