WP Review - Version 5.1.2

Version Description

Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Review
Version 5.1.2
Comparing to
See all releases

Code changes from version 5.1.1 to 5.1.2

Files changed (3) hide show
  1. includes/functions.php +1 -1
  2. readme.txt +4 -1
  3. wp-review.php +2 -2
includes/functions.php CHANGED
@@ -3079,7 +3079,7 @@ function wp_review_visitor_rate( $post_id, $rating_data ) {
3079
  $output['html'] = wp_review_get_review_box( $post_id );
3080
  $output['reviews'] = $reviews;
3081
  } else {
3082
- $post_reviews = mts_get_post_reviews( $post_id );
3083
  $output['html'] = wp_review_rating( $post_reviews['rating'], $post_id, array( 'user_rating' => true ) );
3084
  $output['rating_total'] = $post_reviews['rating'];
3085
  $output['rating_count'] = $post_reviews['count'];
3079
  $output['html'] = wp_review_get_review_box( $post_id );
3080
  $output['reviews'] = $reviews;
3081
  } else {
3082
+ $post_reviews = mts_get_post_reviews( $post_id, true );
3083
  $output['html'] = wp_review_rating( $post_reviews['rating'], $post_id, array( 'user_rating' => true ) );
3084
  $output['rating_total'] = $post_reviews['rating'];
3085
  $output['rating_count'] = $post_reviews['count'];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Creator's website link: http://mythemeshop.com/plugins/wp-review/
4
  Tags: review, wp review, rating, wp rating, user rating, google rating, star rating, product review
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
- Stable tag: 5.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -103,6 +103,9 @@ Please disable all plugins and check if rating is working properly. Then you can
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = v5.1.1 (Nov 1, 2018) =
107
  * Fixed PHP error in the review widget
108
 
4
  Tags: review, wp review, rating, wp rating, user rating, google rating, star rating, product review
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
+ Stable tag: 5.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
103
 
104
  == Changelog ==
105
 
106
+ = v5.1.2 (Nov 7, 2018) =
107
+ * Fixed wrong total rating calculation
108
+
109
  = v5.1.1 (Nov 1, 2018) =
110
  * Fixed PHP error in the review widget
111
 
wp-review.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Review
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
5
  * Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
6
- * Version: 5.1.1
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-review
@@ -45,7 +45,7 @@ if ( version_compare( phpversion(), '5.6', '<' ) ) {
45
  }
46
 
47
  /* Plugin version */
48
- define( 'WP_REVIEW_PLUGIN_VERSION', '5.1.1' );
49
 
50
  /* Sets the custom db table name. */
51
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
3
  * Plugin Name: WP Review
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
5
  * Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
6
+ * Version: 5.1.2
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-review
45
  }
46
 
47
  /* Plugin version */
48
+ define( 'WP_REVIEW_PLUGIN_VERSION', '5.1.2' );
49
 
50
  /* Sets the custom db table name. */
51
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );