Changeset 29206 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 07/17/2014 09:13:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r29125 r29206 246 246 */ 247 247 function install_plugin_install_status($api, $loop = false) { 248 // this function is called recursively, $loop prevents further loops.248 // This function is called recursively, $loop prevents further loops. 249 249 if ( is_array($api) ) 250 250 $api = (object) $api; 251 251 252 // Default to a "new" plugin252 // Default to a "new" plugin 253 253 $status = 'install'; 254 254 $url = false; 255 255 256 //Check to see if this plugin is known to be installed, and has an update awaiting it. 256 /* 257 * Check to see if this plugin is known to be installed, 258 * and has an update awaiting it. 259 */ 257 260 $update_plugins = get_site_transient('update_plugins'); 258 261 if ( isset( $update_plugins->response ) ) { … … 439 442 if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) { 440 443 foreach( $api->ratings as $key => $ratecount ) { 441 // avoid div-by-zero444 // Avoid div-by-zero. 442 445 $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0; 443 446 ?>
Note: See TracChangeset
for help on using the changeset viewer.