Version Description
- Fixed Google structured data testing tool errors and warnings
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Review |
Version | 3.3 |
Comparing to | |
See all releases |
Code changes from version 3.2.9 to 3.3
- admin/activation.php +0 -0
- admin/admin.php +0 -0
- admin/metaboxes.php +0 -0
- admin/options.php +0 -0
- assets/css/admin.css +0 -0
- assets/css/wp-review-ie7.css +0 -0
- assets/css/wp-review-tab-widget.css +0 -0
- assets/css/wp-review.css +0 -0
- assets/fonts/font-icons.eot +0 -0
- assets/fonts/font-icons.svg +0 -0
- assets/fonts/font-icons.ttf +0 -0
- assets/fonts/font-icons.woff +0 -0
- assets/images/largethumb.png +0 -0
- assets/images/smallthumb.png +0 -0
- assets/images/wp-review-pro.jpg +0 -0
- assets/js/admin.js +0 -0
- assets/js/main.js +0 -0
- assets/js/wp-review-tab-widget-admin.js +0 -0
- assets/js/wp-review-tab-widget.js +0 -0
- filter-list.php +0 -0
- includes/enqueue.php +0 -0
- includes/functions.php +22 -22
- includes/widget.php +0 -0
- languages/default.mo +0 -0
- languages/default.po +0 -0
- license.txt +0 -0
- readme.txt +5 -2
- wp-review.php +1 -1
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"
|
184 |
} elseif ( 'point' == $type ) {
|
185 |
-
$review .= '<span class="review-total-box"
|
186 |
} elseif ( 'star' == $type ) {
|
187 |
-
$review .= '<span class="review-total-box"
|
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 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
}
|
222 |
}
|
223 |
|
@@ -282,13 +282,13 @@ function wp_review_get_data( $post_id = null ) {
|
|
282 |
|
283 |
$review .= '</div>';
|
284 |
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
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.
|
7 |
-
Stable tag: 3.
|
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.
|
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 |
*
|