Make WordPress Core


Ignore:
Timestamp:
10/20/2010 02:16:03 PM (14 years ago)
Author:
ryan
Message:

Add plugin update notifications, plugin install, plugin update to the network admin screen. Props PeteMall. see #15129

File:
1 edited

Legend:

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

    r15834 r15867  
    5555        $parent_file = 'plugins.php';
    5656        $submenu_file = 'plugins.php';
    57         require_once('./admin-header.php');
     57        require_once(ABSPATH . 'wp-admin/admin-header.php');
    5858
    5959        $nonce = 'upgrade-plugin_' . $plugin;
     
    6363        $upgrader->upgrade($plugin);
    6464
    65         include('./admin-footer.php');
     65        include(ABSPATH . 'wp-admin/admin-footer.php');
    6666
    6767    } elseif ('activate-plugin' == $action ) {
     
    108108        $parent_file = 'plugins.php';
    109109        $submenu_file = 'plugin-install.php';
    110         require_once('./admin-header.php');
     110        require_once(ABSPATH . 'wp-admin/admin-header.php');
    111111
    112112        $title = sprintf( __('Installing Plugin: %s'), $api->name . ' ' . $api->version );
     
    121121        $upgrader->install($api->download_link);
    122122
    123         include('./admin-footer.php');
     123        include(ABSPATH . 'wp-admin/admin-footer.php');
    124124
    125125    } elseif ( 'upload-plugin' == $action ) {
     
    135135        $parent_file = 'plugins.php';
    136136        $submenu_file = 'plugin-install.php';
    137         require_once('./admin-header.php');
     137        require_once(ABSPATH . 'wp-admin/admin-header.php');
    138138
    139139        $title = sprintf( __('Installing Plugin from uploaded file: %s'), basename( $file_upload->filename ) );
     
    145145        $upgrader->install( $file_upload->package );
    146146
    147         include('./admin-footer.php');
     147        include(ABSPATH . 'wp-admin/admin-footer.php');
    148148
    149149    } elseif ( 'upgrade-theme' == $action ) {
     
    159159        $parent_file = 'themes.php';
    160160        $submenu_file = 'themes.php';
    161         require_once('./admin-header.php');
     161        require_once(ABSPATH . 'wp-admin/admin-header.php');
    162162
    163163        $nonce = 'upgrade-theme_' . $theme;
     
    167167        $upgrader->upgrade($theme);
    168168
    169         include('./admin-footer.php');
     169        include(ABSPATH . 'wp-admin/admin-footer.php');
    170170    } elseif ( 'update-selected-themes' == $action ) {
    171171        if ( ! current_user_can( 'update_themes' ) )
     
    212212        $parent_file = 'themes.php';
    213213        $submenu_file = 'themes.php';
    214         require_once('./admin-header.php');
     214        require_once(ABSPATH . 'wp-admin/admin-header.php');
    215215
    216216        $title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version );
     
    222222        $upgrader->install($api->download_link);
    223223
    224         include('./admin-footer.php');
     224        include(ABSPATH . 'wp-admin/admin-footer.php');
    225225
    226226    } elseif ( 'upload-theme' == $action ) {
     
    238238        add_thickbox();
    239239        wp_enqueue_script('theme-preview');
    240         require_once('./admin-header.php');
     240        require_once(ABSPATH . 'wp-admin/admin-header.php');
    241241
    242242        $title = sprintf( __('Installing Theme from uploaded file: %s'), basename( $file_upload->filename ) );
     
    248248        $upgrader->install( $file_upload->package );
    249249
    250         include('./admin-footer.php');
     250        include(ABSPATH . 'wp-admin/admin-footer.php');
    251251
    252252    } else {
Note: See TracChangeset for help on using the changeset viewer.