WP Review - Version 3.3

Version Description

  • Fixed Google structured data testing tool errors and warnings
Download this release

Release Info

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

Code changes from version 3.2.9 to 3.3

admin/activation.php CHANGED
File without changes
admin/admin.php CHANGED
File without changes
admin/metaboxes.php CHANGED
File without changes
admin/options.php CHANGED
File without changes
assets/css/admin.css CHANGED
File without changes
assets/css/wp-review-ie7.css CHANGED
File without changes
assets/css/wp-review-tab-widget.css CHANGED
File without changes
assets/css/wp-review.css CHANGED
File without changes
assets/fonts/font-icons.eot CHANGED
File without changes
assets/fonts/font-icons.svg CHANGED
File without changes
assets/fonts/font-icons.ttf CHANGED
File without changes
assets/fonts/font-icons.woff CHANGED
File without changes
assets/images/largethumb.png CHANGED
File without changes
assets/images/smallthumb.png CHANGED
File without changes
assets/images/wp-review-pro.jpg CHANGED
File without changes
assets/js/admin.js CHANGED
File without changes
assets/js/main.js CHANGED
File without changes
assets/js/wp-review-tab-widget-admin.js CHANGED
File without changes
assets/js/wp-review-tab-widget.js CHANGED
File without changes
filter-list.php CHANGED
File without changes
includes/enqueue.php CHANGED
File without changes
includes/functions.php CHANGED
@@ -180,11 +180,11 @@ function wp_review_get_data( $post_id = null ) {
180
  $review .= '<div class="review-total-wrapper"> ';
181
 
182
  if ( 'percentage' == $type ) {
183
- $review .= '<span class="review-total-box"><span itemprop="review">' . $total . '</span> <i class="percentage-icon">%</i>' . '</span>';
184
  } elseif ( 'point' == $type ) {
185
- $review .= '<span class="review-total-box" itemprop="review">' . $total . '/10</span>';
186
  } elseif ( 'star' == $type ) {
187
- $review .= '<span class="review-total-box" itemprop="review">' . $total . '</span>';
188
 
189
  $review .= '<div class="review-total-star">';
190
  $review .= '<div class="review-result-wrapper">';
@@ -206,18 +206,18 @@ function wp_review_get_data( $post_id = null ) {
206
 
207
  $review .= '</div>';
208
 
209
-
210
- $review .= '<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Review">
211
- <meta itemprop="itemreviewed" content="'.__( $heading ).'">
212
-
213
- <span itemprop="rating" itemscope="itemscope"itemtype="http://data-vocabulary.org/Rating">
214
- <meta itemprop="value" content="'.$total.'">
215
- <meta itemprop="best" content="'.$best.'">
216
- </span>
217
- <span itemprop="reviewer" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">
218
- <meta itemprop="name" content="'. get_the_author() .'">
219
- </span>
220
- </div>';
221
  }
222
  }
223
 
@@ -282,13 +282,13 @@ function wp_review_get_data( $post_id = null ) {
282
 
283
  $review .= '</div>';
284
 
285
- $review .= '<div itemscope itemtype="http://schema.org/Review">
286
- <div itemprop="reviewRating" itemscope itemtype="http://schema.org/AggregateRating">
287
- <meta itemprop="ratingValue" content="'.$userTotal.'" />
288
- <meta itemprop="bestRating" content="5"/>
289
- <meta itemprop="ratingCount" content="'.$usersReviewsCount.'" />
290
- </div>
291
- </div>';
292
 
293
  }//**END IF USERS ALLOWED TO RATE**
294
 
180
  $review .= '<div class="review-total-wrapper"> ';
181
 
182
  if ( 'percentage' == $type ) {
183
+ $review .= '<span class="review-total-box">' . $total . ' <i class="percentage-icon">%</i>' . '</span>';
184
  } elseif ( 'point' == $type ) {
185
+ $review .= '<span class="review-total-box">' . $total . '/10</span>';
186
  } elseif ( 'star' == $type ) {
187
+ $review .= '<span class="review-total-box">' . $total . '</span>';
188
 
189
  $review .= '<div class="review-total-star">';
190
  $review .= '<div class="review-result-wrapper">';
206
 
207
  $review .= '</div>';
208
 
209
+ $review .= '<div itemscope itemtype="http://schema.org/Review">
210
+ <span itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing">
211
+ <meta itemprop="name" content="'.__( $heading ).'">
212
+ </span>
213
+ <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
214
+ <meta itemprop="ratingValue" content="'.$total.'">
215
+ <meta itemprop="bestRating" content="'.$best.'">
216
+ </span>
217
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
218
+ <meta itemprop="name" content="'. get_the_author() .'">
219
+ </span>
220
+ </div>';
221
  }
222
  }
223
 
282
 
283
  $review .= '</div>';
284
 
285
+ // Is schema needed here?
286
+ if ( $userTotal !== '0.0' ) {// dont'show if no user ratings
287
+ $review .= '<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
288
+ <meta itemprop="ratingValue" content="'.$userTotal.'" />
289
+ <meta itemprop="reviewCount" content="'.$usersReviewsCount.'" />
290
+ </div>';
291
+ }
292
 
293
  }//**END IF USERS ALLOWED TO RATE**
294
 
includes/widget.php CHANGED
File without changes
languages/default.mo CHANGED
File without changes
languages/default.po CHANGED
File without changes
license.txt CHANGED
File without changes
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mythemeshop
3
  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: 3.0.1
6
- Tested up to: 4.1
7
- Stable tag: 3.2.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -89,6 +89,9 @@ Please disable all plugins and check if rating is working properly. Then you can
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 3.2.9 =
93
  * Fixed star rating issue on small screens.
94
 
3
  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: 3.0.1
6
+ Tested up to: 4.2
7
+ Stable tag: 3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
89
 
90
  == Changelog ==
91
 
92
+ = 3.3 =
93
+ * Fixed Google structured data testing tool errors and warnings
94
+
95
  = 3.2.9 =
96
  * Fixed star rating issue on small screens.
97
 
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: 3.2.9
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *
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: 3.3
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *