Make WordPress Core


Ignore:
Timestamp:
12/09/2008 06:03:31 PM (18 years ago)
Author:
ryan
Message:

Strip trailing whitespace

File:
1 edited

Legend:

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

    r10093 r10150  
    133133                <?php _e('<strong>Author:</strong> Searches for plugins created by the Author, or which the Author contributed to.') ?></p>
    134134        </div>
    135        
     135
    136136        <h4><?php _e('Install a plugin in .zip format') ?></h4>
    137137        <p><?php _e('If you have a plugin in a .zip format, You may install it by uploading it here.') ?></p>
    … …  
    141141                <input type="submit" class="button" value="<?php _e('Install Now') ?>" />
    142142        </form>
    143        
     143
    144144        <h4><?php _e('Popular tags') ?></h4>
    145145        <p><?php _e('You may also browse based on the most popular tags in the Plugin Directory:') ?></p>
    … …  
    397397                $section = array_shift( $section_titles = array_keys((array)$api->sections) );
    398398
    399         iframe_header( __('Plugin Install') ); 
     399        iframe_header( __('Plugin Install') );
    400400        echo "<div id='$tab-header'>\n";
    401401        echo "<ul id='sidemenu'>\n";
    … …  
    506506        <div id="section-holder" class="wrap">
    507507        <?php
    508                 if ( version_compare($GLOBALS['wp_version'], $api->tested, '>') ) 
     508                if ( version_compare($GLOBALS['wp_version'], $api->tested, '>') )
    509509                        echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This plugin has <strong>not been tested</strong> with your current version of WordPress.') . '</p></div>';
    510                 else if ( version_compare($GLOBALS['wp_version'], $api->requires, '<') ) 
     510                else if ( version_compare($GLOBALS['wp_version'], $api->requires, '<') )
    511511                        echo '<div class="updated"><p>' . __('<strong>Warning:</strong> This plugin has not been marked as <strong>compatible</strong> with your version of WordPress.') . '</p></div>';
    512512                foreach ( (array)$api->sections as $section_name => $content ) {
    … …  
    550550        echo '<h2>', sprintf( __('Installing Plugin from file: %s'), basename($filename) ), '</h2>';
    551551
    552         //Handle a newly uploaded file, Else assume it was 
     552        //Handle a newly uploaded file, Else assume it was
    553553        if ( !empty($_FILES) ) {
    554554                $filename = wp_unique_filename( $uploads['basedir'], $filename );
    555555                $local_file = $uploads['basedir'] . '/' . $filename;
    556        
     556
    557557                // Move the file to the uploads dir
    558558                if ( false === @ move_uploaded_file( $_FILES['pluginzip']['tmp_name'], $local_file) )
    … …  
    579579        check_admin_referer('install-plugin_' . $plugin);
    580580        $api = plugins_api('plugin_information', array('slug' => $plugin, 'fields' => array('sections' => false) ) ); //Save on a bit of bandwidth.
    581        
     581
    582582        if ( is_wp_error($api) )
    583583                wp_die($api);
    … …  
    661661                return;
    662662        }
    663        
     663
    664664        if ( empty($filename) )
    665665                $filename = basename($package);
Note: See TracChangeset for help on using the changeset viewer.