Permalink
Browse files

Fix missing rating stars bug: cast rating value as float

  • Loading branch information...
CaerCam committed Oct 23, 2017
1 parent 7d51d2c commit 8d375b17fe5cbc9f6ead46a837063f72ecd4650e
Showing with 1 addition and 0 deletions.
  1. +1 −0 includes/classes/class-wpmoly-utils.php
@@ -802,6 +802,7 @@ public static function get_movie_rating_stars( $rating, $post_id = null, $base =
if ( 10 != $base )
$base = 5;
$rating = floatval( $rating );
if ( 0 > $rating )
$rating = 0.0;
if ( 5.0 < $rating )

0 comments on commit 8d375b1

Please sign in to comment.