WordPress.org

Make WordPress Core

Ticket #21874: 21874.diff

File 21874.diff, 1.0 KB (added by solarissmoke, 6 years ago)
  • wp-admin/includes/update.php

     
    210210        }
    211211}
    212212
    213 function wp_update_plugin($plugin, $feedback = '') {
    214         if ( !empty($feedback) )
    215                 add_filter('update_feedback', $feedback);
    216 
    217         include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    218         $upgrader = new Plugin_Upgrader();
    219         return $upgrader->upgrade($plugin);
    220 }
    221 
    222213function get_theme_updates() {
    223214        $themes = wp_get_themes();
    224215        $current = get_site_transient('update_themes');
     
    235226        return $update_themes;
    236227}
    237228
    238 function wp_update_theme($theme, $feedback = '') {
    239         if ( !empty($feedback) )
    240                 add_filter('update_feedback', $feedback);
    241 
    242         include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    243         $upgrader = new Theme_Upgrader();
    244         return $upgrader->upgrade($theme);
    245 }
    246 
    247229function wp_theme_update_rows() {
    248230        if ( !current_user_can('update_themes' ) )
    249231                return;