Skip to content

Commit

Permalink
Fix rating formatting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
caercam committed Oct 23, 2017
1 parent 0ddd27c commit d8529f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/classes/class-wpmoly-utils.php
Expand Up @@ -806,6 +806,8 @@ public static function get_movie_rating_stars( $rating, $post_id = null, $base =
$rating = 0.0;
if ( 5.0 < $rating )
$rating = 5.0;
else
$rating = 0;

$title = '';
if ( isset( $defaults['rating']['options'][ $rating ] ) )
Expand Down

0 comments on commit d8529f4

Please sign in to comment.