mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
foreach is a statement, not a function.
See #33491. git-svn-id: https://develop.svn.wordpress.org/trunk@33734 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -497,7 +497,7 @@ function install_plugin_information() {
|
||||
<?php }
|
||||
|
||||
if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {
|
||||
foreach( $api->ratings as $key => $ratecount ) {
|
||||
foreach ( $api->ratings as $key => $ratecount ) {
|
||||
// Avoid div-by-zero.
|
||||
$_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user