Changes from branches/2.8/wp-admin/includes/plugin-install.php at r11586 to trunk/wp-admin/includes/plugin-install.php at r11541
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r11586 r11541 47 47 $res = new WP_Error('plugins_api_failed', __('An unknown error occurred'), $request['body']); 48 48 } 49 } elseif ( !is_wp_error($res) ) {50 $res->external = true;51 49 } 52 50 … … 444 442 $type = 'install'; 445 443 //Check to see if this plugin is known to be installed, and has an update awaiting it. 446 $update_plugins = get_ transient('update_plugins');444 $update_plugins = get_option('update_plugins'); 447 445 if ( is_object( $update_plugins ) ) { 448 446 foreach ( (array)$update_plugins->response as $file => $plugin ) { … … 465 463 } else { 466 464 //If the above update check failed, Then that probably means that the update checker has out-of-date information, force a refresh 467 delete_ transient('update_plugins');465 delete_option('update_plugins'); 468 466 $update_file = $api->slug . '/' . $key; //This code branch only deals with a plugin which is in a folder the same name as its slug, Doesnt support plugins which have 'non-standard' names 469 467 $type = 'update_available'; … … 512 510 <?php endif; if ( ! empty($api->downloaded) ) : ?> 513 511 <li><strong><?php _e('Downloaded:') ?></strong> <?php printf(_n('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li> 514 <?php endif; if ( ! empty($api->slug) && empty($api->external)) : ?>512 <?php endif; if ( ! empty($api->slug) ) : ?> 515 513 <li><a target="_blank" href="http://wordpress.org/extend/plugins/<?php echo $api->slug ?>/"><?php _e('WordPress.org Plugin Page »') ?></a></li> 516 514 <?php endif; if ( ! empty($api->homepage) ) : ?> … … 518 516 <?php endif; ?> 519 517 </ul> 520 <?php if ( ! empty($api->rating) ) : ?>521 518 <h2><?php _e('Average Rating') ?></h2> 522 519 <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>"> … … 529 526 </div> 530 527 <small><?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small> 531 <?php endif; ?>532 528 </div> 533 529 <div id="section-holder" class="wrap">
Note: See TracChangeset
for help on using the changeset viewer.