Make WordPress Core


Ignore:
Timestamp:
08/25/2015 08:27:56 PM (9 years ago)
Author:
wonderboymusic
Message:

foreach is a statement, not a function.

See #33491.

File:
1 edited

Legend:

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

    r33114 r33734  
    498498
    499499        if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {
    500             foreach( $api->ratings as $key => $ratecount ) {
     500            foreach ( $api->ratings as $key => $ratecount ) {
    501501                // Avoid div-by-zero.
    502502                $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
Note: See TracChangeset for help on using the changeset viewer.