Make WordPress Core


Ignore:
Timestamp:
07/17/2014 09:13:53 AM (11 years ago)
Author:
DrewAPicture
Message:

Fix syntax for single- and multi-line comments in wp-admin-directory files.

See #28931.

File:
1 edited

Legend:

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

    r29125 r29206  
    246246 */
    247247function 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.
    249249    if ( is_array($api) )
    250250        $api = (object) $api;
    251251
    252     //Default to a "new" plugin
     252    // Default to a "new" plugin
    253253    $status = 'install';
    254254    $url = false;
    255255
    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     */
    257260    $update_plugins = get_site_transient('update_plugins');
    258261    if ( isset( $update_plugins->response ) ) {
     
    439442        if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {
    440443            foreach( $api->ratings as $key => $ratecount ) {
    441                 // avoid div-by-zero
     444                // Avoid div-by-zero.
    442445                $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
    443446                ?>
Note: See TracChangeset for help on using the changeset viewer.