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 Built from https://develop.svn.wordpress.org/trunk@25307 git-svn-id: http://core.svn.wordpress.org/trunk@25269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
* @subpackage Administration
|
||||
*/
|
||||
|
||||
// The admin side of our 1.1 update system
|
||||
|
||||
/**
|
||||
* Selects the first update version from the update_core option
|
||||
*
|
||||
@@ -220,15 +218,6 @@ function wp_plugin_update_row( $file, $plugin_data ) {
|
||||
}
|
||||
}
|
||||
|
||||
function wp_update_plugin($plugin, $feedback = '') {
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Plugin_Upgrader();
|
||||
return $upgrader->upgrade($plugin);
|
||||
}
|
||||
|
||||
function get_theme_updates() {
|
||||
$themes = wp_get_themes();
|
||||
$current = get_site_transient('update_themes');
|
||||
@@ -245,15 +234,6 @@ function get_theme_updates() {
|
||||
return $update_themes;
|
||||
}
|
||||
|
||||
function wp_update_theme($theme, $feedback = '') {
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Theme_Upgrader();
|
||||
return $upgrader->upgrade($theme);
|
||||
}
|
||||
|
||||
function wp_theme_update_rows() {
|
||||
if ( !current_user_can('update_themes' ) )
|
||||
return;
|
||||
@@ -294,16 +274,6 @@ function wp_theme_update_row( $theme_key, $theme ) {
|
||||
echo '</div></td></tr>';
|
||||
}
|
||||
|
||||
function wp_update_core($current, $feedback = '') {
|
||||
if ( !empty($feedback) )
|
||||
add_filter('update_feedback', $feedback);
|
||||
|
||||
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
$upgrader = new Core_Upgrader();
|
||||
return $upgrader->upgrade($current);
|
||||
|
||||
}
|
||||
|
||||
function maintenance_nag() {
|
||||
global $upgrading;
|
||||
if ( ! isset( $upgrading ) )
|
||||
|
||||
Reference in New Issue
Block a user