WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/09/2013 06:44:25 AM (8 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r25219 r25307  
    315315    global $wp_filesystem;
    316316
     317    include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     318
    317319    if ( $reinstall )
    318320        $url = 'update-core.php?action=do-core-reinstall';
     
    348350        $update->response = 'reinstall';
    349351
    350     $result = wp_update_core($update, 'show_message');
     352    add_filter( 'update_feedback', 'show_message' );
     353
     354    $upgrader = new Core_Upgrader();
     355    $result = $upgrader->upgrade( $update );
    351356
    352357    if ( is_wp_error($result) ) {
Note: See TracChangeset for help on using the changeset viewer.