Make WordPress Core


Ignore:
Timestamp:
08/04/2008 09:01:09 PM (18 years ago)
Author:
westi
Message:

Plugin Install GSOC project first code drop. Props DD32 see #6015.

File:
1 edited

Legend:

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

    r8499 r8540  
    123123                                        <input type="hidden" name="delete-selected" value="1" />
    124124                                        <?php
    125                                                 foreach( (array)$plugins as $plugin ) {
    126                                                         $plugin = attribute_escape($plugin);
    127                                                         echo "<input type='hidden' name='checked[]' value='$plugin' />";
    128                                                 }
     125                                                foreach( (array)$plugins as $plugin )
     126                                                        echo '<input type="hidden" name="checked[]" value="' . attribute_escape($plugin) . '" />';
    129127                                        ?>
    130128                                        <?php wp_nonce_field('bulk-manage-plugins') ?>
    … …  
    139137                                        <ul>
    140138                                        <?php
    141                                                 foreach( (array)$files_to_delete as $file ) {
    142                                                         $file = str_replace(ABSPATH, '', $file);
    143                                                         echo "<li>$file</li>";
    144                                                 }
     139                                                foreach( (array)$files_to_delete as $file )
     140                                                        echo '<li>' . str_replace(WP_PLUGIN_DIR, '', $file) . '</li>';
    145141                                        ?>
    146142                                        </ul>
    … …  
    162158
    163159wp_enqueue_script('admin-forms');
     160wp_enqueue_script('plugin-install');
     161add_thickbox();
    164162
    165163$title = __('Manage Plugins');
    … …  
    206204$inactive_plugins = array();
    207205$recent_plugins = array();
    208 $recently_activated = (array)get_option('recently_activated');
     206$recently_activated = (array) get_option('recently_activated');
    209207
    210208//Clean out any plugins which were deactivated over a week ago.
    … …  
    375373
    376374<h2><?php _e('Get More Plugins'); ?></h2>
    377 <p><?php _e('You can find additional plugins for your site in the <a href="http://wordpress.org/extend/plugins/">WordPress plugin directory</a>.'); ?></p>
    378 <p><?php printf(__('To install a plugin you generally just need to upload the plugin file into your <code>%s</code> directory. Once a plugin is uploaded, you may activate it here.'), WP_PLUGIN_DIR); ?></p>
     375<p><?php _e('You can find additional plugins for your site by using the new <a href="plugin-install.php">Plugin Browser/Installer</a> functionality, Or by browsing the <a href="http://wordpress.org/extend/plugins/">WordPress Plugin Directory</a> directly and installing manually.'); ?></p>
     376<p><?php printf(__('To <em>manually</em> install a plugin you generally just need to upload the plugin file into your <code>%s</code> directory.'), WP_PLUGIN_DIR); ?></p>
     377<p><?php _e('Once a plugin has been installed, you may activate it here.'); ?></p>
    379378
    380379</div>
Note: See TracChangeset for help on using the changeset viewer.