Make WordPress Core


Ignore:
Timestamp:
04/20/2009 06:18:39 PM (15 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

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

    r11012 r11013  
    3535
    3636        include('admin-footer.php');
    37        
     37
    3838    } elseif ('activate-plugin' == $action ) {
    3939        if ( ! current_user_can('update_plugins') )
     
    6464
    6565        include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; //for plugins_api..
    66    
     66
    6767        check_admin_referer('install-plugin_' . $plugin);
    6868        $api = plugins_api('plugin_information', array('slug' => $plugin, 'fields' => array('sections' => false) ) ); //Save on a bit of bandwidth.
    69    
     69
    7070        if ( is_wp_error($api) )
    7171            wp_die($api);
    72    
     72
    7373        $title = __('Plugin Install');
    7474        $parent_file = 'plugins.php';
    7575        $submenu_file = 'plugin-install.php';
    7676        require_once('admin-header.php');
    77    
     77
    7878        $title = sprintf( __('Installing Plugin: %s'), $api->name . ' ' . $api->version );
    7979        $nonce = 'install-plugin_' . $plugin;
     
    8383        $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
    8484        $upgrader->install($api->download_link);
    85        
     85
    8686        include('admin-footer.php');
    8787
     
    9999        $submenu_file = 'plugin-install.php';
    100100        require_once('admin-header.php');
    101        
     101
    102102        $title = sprintf( __('Installing Plugin from uploaded file: %s'), basename( $file_upload->filename ) );
    103103        $nonce = 'plugin-upload';
     
    131131
    132132        include('admin-footer.php');
    133    
     133
    134134    } elseif ( 'install-theme' == $action ) {
    135135
     
    138138
    139139        include_once ABSPATH . 'wp-admin/includes/theme-install.php'; //for themes_api..
    140    
     140
    141141        check_admin_referer('install-theme_' . $theme);
    142142        $api = themes_api('theme_information', array('slug' => $theme, 'fields' => array('sections' => false) ) ); //Save on a bit of bandwidth.
     
    151151        $submenu_file = 'theme-install.php';
    152152        require_once('admin-header.php');
    153    
     153
    154154        $title = sprintf( __('Installing theme: %s'), $api->name . ' ' . $api->version );
    155155        $nonce = 'install-theme_' . $theme;
    156156        $url = 'update.php?action=install-theme&theme=' . $theme;
    157157        $type = 'web'; //Install theme type, From Web or an Upload.
    158    
     158
    159159        $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
    160160        $upgrader->install($api->download_link);
    161        
     161
    162162        include('admin-footer.php');
    163        
     163
    164164    } elseif ( 'upload-theme' == $action ) {
    165165
Note: See TracChangeset for help on using the changeset viewer.