Make WordPress Core


Ignore:
Timestamp:
08/09/2008 05:36:14 AM (16 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

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

    r8597 r8600  
    7575    else
    7676        printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> or <a href="%4$s">upgrade automatically</a>.'), $plugin_data['Name'], $details_url, $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&amp;plugin=' . $file, 'upgrade-plugin_' . $file) );
    77    
     77
    7878    echo '</td></tr>';
    7979}
     
    110110    if( empty($content_dir) )
    111111        return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress Content directory (wp-content).'));
    112    
     112
    113113    $plugins_dir = trailingslashit( $plugins_dir );
    114114    $content_dir = trailingslashit( $content_dir );
     
    137137    // Unzip package to working directory
    138138    $result = unzip_file($download_file, $working_dir);
    139    
     139
    140140    // Once extracted, delete the package
    141141    unlink($download_file);
    142    
     142
    143143    if ( is_wp_error($result) ) {
    144144        $wp_filesystem->delete($working_dir, true);
     
    155155    apply_filters('update_feedback', __('Removing the old version of the plugin'));
    156156    $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin) );
    157    
     157
    158158    // If plugin is in its own directory, recursively delete the directory.
    159159    if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory seperator AND that its not the root plugin folder
     
    183183    // Force refresh of plugin update information
    184184    delete_option('update_plugins');
    185    
     185
    186186    if( empty($filelist) )
    187187        return false; //We couldnt find any files in the working dir, therefor no plugin installed? Failsafe backup.
    188    
     188
    189189    $folder = $filelist[0];
    190190    $plugin = get_plugins('/' . $folder); //Ensure to pass with leading slash
     
    224224    if( empty($content_dir) )
    225225        return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress Content directory (wp-content).'));
    226    
     226
    227227    $wp_dir = trailingslashit( $wp_dir );
    228228    $content_dir = trailingslashit( $content_dir );
Note: See TracChangeset for help on using the changeset viewer.