Fix showing rating/reviews number

This commit is contained in:
Timur Gogolev 2021-10-07 14:28:59 +03:00 committed by And Finally
parent 8024bddad7
commit 2b0f3d1182
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ class WC_Admin_Addons {
// Reviews Count.
$mapped->reviews_count = $data->reviews_count ?? null;
if ( null === $mapped->reviews_count ) {
$mapped->reviewsCount = $data->reviewsCount ?? null; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
$mapped->reviews_count = $data->reviewsCount ?? null; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
}
return $mapped;