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/plugin.php

    r8587 r8600  
    9191
    9292    return array(
    93                 'Name' => $name, 'PluginURI' => $uri, 'Description' => $description, 
    94                 'Author' => $author_name, 'AuthorURI' => $author_uri, 'Version' => $version, 
     93                'Name' => $name, 'PluginURI' => $uri, 'Description' => $description,
     94                'Author' => $author_name, 'AuthorURI' => $author_uri, 'Version' => $version,
    9595                'TextDomain' => $text_domain, 'DomainPath' => $domain_path
    9696                );
     
    9898
    9999function get_plugins($plugin_folder = '') {
    100    
     100
    101101    if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
    102102        $cache_plugins = array();
    103    
     103
    104104    if ( isset($cache_plugins[ $plugin_folder ]) )
    105105        return $cache_plugins[ $plugin_folder ];
    106    
     106
    107107    $wp_plugins = array ();
    108108    $plugin_root = WP_PLUGIN_DIR;
     
    152152    uasort( $wp_plugins, create_function( '$a, $b', 'return strnatcasecmp( $a["Name"], $b["Name"] );' ));
    153153
    154     $cache_plugins[ $plugin_folder ] = $wp_plugins; 
    155     wp_cache_set('plugins', $cache_plugins, 'plugins'); 
     154    $cache_plugins[ $plugin_folder ] = $wp_plugins;
     155    wp_cache_set('plugins', $cache_plugins, 'plugins');
    156156
    157157    return $wp_plugins;
     
    280280    if ( empty($plugins_dir) )
    281281        return new WP_Error('fs_no_plugins_dir', __('Unable to locate WordPress Plugin directory.'));
    282    
     282
    283283    $plugins_dir = trailingslashit( $plugins_dir );
    284284
     
    296296        else
    297297            $deleted = $wp_filesystem->delete($plugins_dir . $plugin_file);
    298    
     298
    299299        if ( ! $deleted )
    300300            $errors[] = $plugin_file;
    301301    }
    302    
     302
    303303    if( ! empty($errors) )
    304304        return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s'), implode(', ', $errors)) );
    305    
     305
    306306    return true;
    307307}
     
    318318
    319319    //Invalid is any plugin that is deactivated due to error.
    320     $invalid = array(); 
     320    $invalid = array();
    321321
    322322    // If a plugin file does not exist, remove it from the list of active
Note: See TracChangeset for help on using the changeset viewer.