Changeset 10150 for trunk/wp-admin/includes/plugin-install.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r10093 r10150 133 133 <?php _e('<strong>Author:</strong> Searches for plugins created by the Author, or which the Author contributed to.') ?></p> 134 134 </div> 135 135 136 136 <h4><?php _e('Install a plugin in .zip format') ?></h4> 137 137 <p><?php _e('If you have a plugin in a .zip format, You may install it by uploading it here.') ?></p> … … 141 141 <input type="submit" class="button" value="<?php _e('Install Now') ?>" /> 142 142 </form> 143 143 144 144 <h4><?php _e('Popular tags') ?></h4> 145 145 <p><?php _e('You may also browse based on the most popular tags in the Plugin Directory:') ?></p> … … 397 397 $section = array_shift( $section_titles = array_keys((array)$api->sections) ); 398 398 399 iframe_header( __('Plugin Install') ); 399 iframe_header( __('Plugin Install') ); 400 400 echo "<div id='$tab-header'>\n"; 401 401 echo "<ul id='sidemenu'>\n"; … … 506 506 <div id="section-holder" class="wrap"> 507 507 <?php 508 if ( version_compare($GLOBALS['wp_version'], $api->tested, '>') ) 508 if ( version_compare($GLOBALS['wp_version'], $api->tested, '>') ) 509 509 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, '<') ) 511 511 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>'; 512 512 foreach ( (array)$api->sections as $section_name => $content ) { … … 550 550 echo '<h2>', sprintf( __('Installing Plugin from file: %s'), basename($filename) ), '</h2>'; 551 551 552 //Handle a newly uploaded file, Else assume it was 552 //Handle a newly uploaded file, Else assume it was 553 553 if ( !empty($_FILES) ) { 554 554 $filename = wp_unique_filename( $uploads['basedir'], $filename ); 555 555 $local_file = $uploads['basedir'] . '/' . $filename; 556 556 557 557 // Move the file to the uploads dir 558 558 if ( false === @ move_uploaded_file( $_FILES['pluginzip']['tmp_name'], $local_file) ) … … 579 579 check_admin_referer('install-plugin_' . $plugin); 580 580 $api = plugins_api('plugin_information', array('slug' => $plugin, 'fields' => array('sections' => false) ) ); //Save on a bit of bandwidth. 581 581 582 582 if ( is_wp_error($api) ) 583 583 wp_die($api); … … 661 661 return; 662 662 } 663 663 664 664 if ( empty($filename) ) 665 665 $filename = basename($package);
Note: See TracChangeset
for help on using the changeset viewer.