Version Description
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Review |
Version | 4.0.10 |
Comparing to | |
See all releases |
Code changes from version 4.0.9 to 4.0.10
- includes/functions.php +3 -9
- readme.txt +72 -39
- wp-review.php +1 -1
includes/functions.php
CHANGED
@@ -157,21 +157,14 @@ function wp_review_show_total($echo = true, $class = 'review-total-only', $post_
|
|
157 |
}
|
158 |
|
159 |
function wp_review_total_shortcode($atts, $content) {
|
160 |
-
|
161 |
-
$atts['class'] = 'review-total-only review-total-shortcode';
|
162 |
-
|
163 |
-
if (empty($atts['id']))
|
164 |
-
$atts['id'] = null;
|
165 |
-
|
166 |
$output = wp_review_show_total( false, $atts['class'], $atts['id'], array( 'shortcode' => true ) );
|
167 |
|
168 |
return apply_filters( 'wp_review_total_shortcode', $output, $atts );
|
169 |
}
|
170 |
|
171 |
function wp_review_shortcode( $atts, $content = "") {
|
172 |
-
|
173 |
-
$atts['id'] = null;
|
174 |
-
|
175 |
$output = wp_review_get_data($atts['id']);
|
176 |
|
177 |
return apply_filters( 'wp_review_shortcode', $output, $atts );
|
@@ -181,6 +174,7 @@ function wp_review_visitor_rating_shortcode( $atts, $content = "" ) {
|
|
181 |
wp_enqueue_style( 'wp_review-style' );
|
182 |
wp_enqueue_script( 'wp_review-js' );
|
183 |
|
|
|
184 |
$id = empty( $atts['id'] ) ? get_the_ID() : absint( $atts['id'] );
|
185 |
|
186 |
$text = '<div class="wp-review-' . $id . ' review-wrapper visitor-rating-shortcode">';
|
157 |
}
|
158 |
|
159 |
function wp_review_total_shortcode($atts, $content) {
|
160 |
+
$atts = shortcode_atts( array( 'id' => null, 'class' => 'review-total-only review-total-shortcode' ), $atts );
|
|
|
|
|
|
|
|
|
|
|
161 |
$output = wp_review_show_total( false, $atts['class'], $atts['id'], array( 'shortcode' => true ) );
|
162 |
|
163 |
return apply_filters( 'wp_review_total_shortcode', $output, $atts );
|
164 |
}
|
165 |
|
166 |
function wp_review_shortcode( $atts, $content = "") {
|
167 |
+
$atts = shortcode_atts( array( 'id' => null ), $atts );
|
|
|
|
|
168 |
$output = wp_review_get_data($atts['id']);
|
169 |
|
170 |
return apply_filters( 'wp_review_shortcode', $output, $atts );
|
174 |
wp_enqueue_style( 'wp_review-style' );
|
175 |
wp_enqueue_script( 'wp_review-js' );
|
176 |
|
177 |
+
$atts = shortcode_atts( array( 'id' => null ), $atts );
|
178 |
$id = empty( $atts['id'] ) ? get_the_ID() : absint( $atts['id'] );
|
179 |
|
180 |
$text = '<div class="wp-review-' . $id . ' review-wrapper visitor-rating-shortcode">';
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
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:
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -64,9 +64,9 @@ Yes, this plugin is so developer friendly, so you could use it with any theme yo
|
|
64 |
Show average review in your theme using below function:
|
65 |
`<?php if (function_exists('wp_review_show_total')) wp_review_show_total(); ?>`
|
66 |
|
67 |
-
You can find full list of the available filters here https://github.com/
|
68 |
|
69 |
-
GitHub link: https://github.com/
|
70 |
|
71 |
You can also use the WP Review plugin for creating product reviews and pair it up with a <a rel="nofollow" href="https://mythemeshop.com/theme-category/wordpress-ecommerce-themes/">WordPress Ecommerce Theme</a> to increase the trust of new users on your website.
|
72 |
|
@@ -102,102 +102,131 @@ Please disable all plugins and check if rating is working properly. Then you can
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
-
=
|
|
|
|
|
|
|
|
|
106 |
* Fixed color picker issue in the Theme Customizer
|
107 |
|
108 |
-
|
|
|
109 |
* Improved support for older PHP versions
|
110 |
|
111 |
-
|
|
|
112 |
* Fixed widget title issue
|
113 |
|
114 |
-
|
|
|
115 |
* Embedded full video tutorial
|
116 |
|
117 |
-
|
|
|
118 |
* Fixed: final rating can now be entered manually again
|
119 |
* Fixed: removed unneeded code related to circle review type
|
120 |
|
121 |
-
= 4.0.4 =
|
122 |
-
* Fixed: backlink option is not enabled by default anymore. Sorry about that!
|
123 |
|
124 |
-
=
|
|
|
|
|
|
|
|
|
125 |
* Fixed decimals issue in Point reviews
|
126 |
* Fixed bug preventing reviews to appear on Pages
|
127 |
|
128 |
-
|
|
|
129 |
* Added back missing Widget Title field
|
130 |
|
131 |
-
|
|
|
132 |
* Replaced anonymous functions for compatibility with older PHP versions
|
133 |
* Added optional backlink
|
134 |
* Removed unneeded Review Links metabox
|
135 |
|
136 |
-
|
|
|
137 |
* Huge code improvement and optimization
|
138 |
* Choose any rating type for user reviews (user reviews were restricted to stars before)
|
139 |
* View and edit user ratings from the WordPress dashboard
|
140 |
* Added Drag & Drop for Review Items
|
141 |
* Added Rating Column on 'Posts' page
|
142 |
-
* For developers: Review box templates
|
143 |
-
* For developers: Rating type templates
|
144 |
* Various bug fixes and improvements
|
145 |
* NOTE: After updating the plugin, existing user ratings must be migrated in Settings > WP Review Pro > Migrate Ratings
|
146 |
|
147 |
-
|
|
|
148 |
* Fixed spelling mistake in notification
|
149 |
|
150 |
-
|
|
|
151 |
* Fixed notification closing issue
|
152 |
|
153 |
-
|
|
|
154 |
* Fixed function conflict with WP Subscribe Plugin
|
155 |
|
156 |
-
|
|
|
157 |
* Switched to PHP 5 style constructor method for the widget class
|
158 |
|
159 |
-
|
|
|
160 |
* Rating stars are showing on search engine results page
|
161 |
|
162 |
-
|
|
|
163 |
* Fixed Google structured data testing tool errors and warnings
|
164 |
|
165 |
-
|
|
|
166 |
* Fixed star rating issue on small screens.
|
167 |
|
168 |
-
|
|
|
169 |
* Removed extra closing span tag in markup
|
170 |
* Added Title option for widget
|
171 |
|
172 |
-
|
|
|
173 |
* Added Title Length option for widget
|
174 |
* Added Filter to control default title length
|
175 |
|
176 |
-
|
|
|
177 |
* Added optional 'id' parameter for shortcode
|
178 |
* Added filter to modify style output
|
179 |
|
180 |
-
|
|
|
181 |
* Added loading animation in widget
|
182 |
* Fixed minor bug in user ratings
|
183 |
|
184 |
-
|
|
|
185 |
* Fixed text from review box appearing in widgets
|
186 |
* Fixed PHP notice on reviews with only total rating and no criteria
|
187 |
|
188 |
-
|
|
|
189 |
* Added version number to wp_enqueue_ functions
|
190 |
* Added filter to remove banner from options page
|
191 |
|
192 |
-
|
|
|
193 |
* Fixed Stars were not appearing in Tabbed widget.
|
194 |
|
195 |
-
|
|
|
196 |
* Fixed error appearing when plugin settings weren't saved.
|
197 |
* Fixed JS issues.
|
198 |
* Fixed Tabbed Widget issue.
|
199 |
|
200 |
-
|
|
|
201 |
* Added Options Panel for Global Option
|
202 |
* Added option to set Global Colors.
|
203 |
* Added option to Global position.
|
@@ -215,12 +244,14 @@ Please disable all plugins and check if rating is working properly. Then you can
|
|
215 |
* Fixed many small bugs.
|
216 |
* Optimized code for better performance.
|
217 |
|
218 |
-
|
|
|
219 |
* Fixed average star rating number issue.
|
220 |
* Added New filter to exclude post types.
|
221 |
* Updated filter list.
|
222 |
|
223 |
-
|
|
|
224 |
* Major security updates
|
225 |
* New AJAXified Tab widget for Popular and Recent reviews, try it, you gonna love it.
|
226 |
* Language file updated fully.
|
@@ -230,8 +261,9 @@ Please disable all plugins and check if rating is working properly. Then you can
|
|
230 |
* Compatible with WordPress 3.9 Beta
|
231 |
* Plugin will support the widget customizer coming up in WordPress 3.9
|
232 |
|
233 |
-
|
234 |
-
|
|
|
235 |
* Added `[wp-review]` shortcode to show the ratings anywhere in the content.
|
236 |
* Added an option to not show review automatically in the Review Location dropdown.
|
237 |
* Added support for Custom post types and pages.
|
@@ -239,5 +271,6 @@ Please disable all plugins and check if rating is working properly. Then you can
|
|
239 |
* For Developers Added the default colors which appear in the meta boxes are now stored in an option. It can be modified directly with `update_option()`, or using the new `wp_review_set_default_colors()` function, which is also called on plugin activation to set the plugin's default colors.
|
240 |
* Made small CSS and responsive improvements.
|
241 |
|
242 |
-
|
|
|
243 |
* Official plugin release.
|
2 |
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: 4.0
|
6 |
+
Tested up to: 4.9.1
|
7 |
+
Stable tag: 4.0.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
64 |
Show average review in your theme using below function:
|
65 |
`<?php if (function_exists('wp_review_show_total')) wp_review_show_total(); ?>`
|
66 |
|
67 |
+
You can find full list of the available filters here https://github.com/MyThemeShopTeam/WP-Review/blob/master/filter-list.php
|
68 |
|
69 |
+
GitHub link: https://github.com/MyThemeShopTeam/WP-Review/
|
70 |
|
71 |
You can also use the WP Review plugin for creating product reviews and pair it up with a <a rel="nofollow" href="https://mythemeshop.com/theme-category/wordpress-ecommerce-themes/">WordPress Ecommerce Theme</a> to increase the trust of new users on your website.
|
72 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= v4.0.10 (May 23, 2017) =
|
106 |
+
* Fixed shortcode attribute-related PHP warnings
|
107 |
+
|
108 |
+
|
109 |
+
= v4.0.9 (Feb 11, 2017) =
|
110 |
* Fixed color picker issue in the Theme Customizer
|
111 |
|
112 |
+
|
113 |
+
= v4.0.8 (Feb 7, 2017) =
|
114 |
* Improved support for older PHP versions
|
115 |
|
116 |
+
|
117 |
+
= v4.0.7 (Mar 26, 2016) =
|
118 |
* Fixed widget title issue
|
119 |
|
120 |
+
|
121 |
+
= v4.0.6 (Mar 11, 2016) =
|
122 |
* Embedded full video tutorial
|
123 |
|
124 |
+
|
125 |
+
= v4.0.5 (Mar 9, 2016) =
|
126 |
* Fixed: final rating can now be entered manually again
|
127 |
* Fixed: removed unneeded code related to circle review type
|
128 |
|
|
|
|
|
129 |
|
130 |
+
= v4.0.4 (Mar 7, 2016) =
|
131 |
+
* Fixed: backlink option is not enabled by default anymore. Sorry for that!
|
132 |
+
|
133 |
+
|
134 |
+
= v4.0.3 (Mar 5, 2016) =
|
135 |
* Fixed decimals issue in Point reviews
|
136 |
* Fixed bug preventing reviews to appear on Pages
|
137 |
|
138 |
+
|
139 |
+
= v4.0.2 (Mar 4, 2016) =
|
140 |
* Added back missing Widget Title field
|
141 |
|
142 |
+
|
143 |
+
= v4.0.1 (Mar 1, 2016) =
|
144 |
* Replaced anonymous functions for compatibility with older PHP versions
|
145 |
* Added optional backlink
|
146 |
* Removed unneeded Review Links metabox
|
147 |
|
148 |
+
|
149 |
+
= v4.0.0 (Mar 1, 2016) =
|
150 |
* Huge code improvement and optimization
|
151 |
* Choose any rating type for user reviews (user reviews were restricted to stars before)
|
152 |
* View and edit user ratings from the WordPress dashboard
|
153 |
* Added Drag & Drop for Review Items
|
154 |
* Added Rating Column on 'Posts' page
|
155 |
+
* For developers: Review box templates: Create custom review box templates
|
156 |
+
* For developers: Rating type templates: Create custom rating types
|
157 |
* Various bug fixes and improvements
|
158 |
* NOTE: After updating the plugin, existing user ratings must be migrated in Settings > WP Review Pro > Migrate Ratings
|
159 |
|
160 |
+
|
161 |
+
= v3.3.5 (Sep 17, 2015) =
|
162 |
* Fixed spelling mistake in notification
|
163 |
|
164 |
+
|
165 |
+
= v3.3.4 (Sep 17, 2015) =
|
166 |
* Fixed notification closing issue
|
167 |
|
168 |
+
|
169 |
+
= v3.3.3 (Sep 17, 2015) =
|
170 |
* Fixed function conflict with WP Subscribe Plugin
|
171 |
|
172 |
+
|
173 |
+
= v3.3.2 (Sep 16, 2015) =
|
174 |
* Switched to PHP 5 style constructor method for the widget class
|
175 |
|
176 |
+
|
177 |
+
= v3.3.1 (May 5, 2015) =
|
178 |
* Rating stars are showing on search engine results page
|
179 |
|
180 |
+
|
181 |
+
= v3.3 (Mar 14, 2015) =
|
182 |
* Fixed Google structured data testing tool errors and warnings
|
183 |
|
184 |
+
|
185 |
+
= v3.2.9 (Feb 2, 2015) =
|
186 |
* Fixed star rating issue on small screens.
|
187 |
|
188 |
+
|
189 |
+
= v3.2.8 (Jan 20, 2015) =
|
190 |
* Removed extra closing span tag in markup
|
191 |
* Added Title option for widget
|
192 |
|
193 |
+
|
194 |
+
= v3.2.7 (Oct 19, 2014) =
|
195 |
* Added Title Length option for widget
|
196 |
* Added Filter to control default title length
|
197 |
|
198 |
+
|
199 |
+
= v3.2.6 (Oct 3, 2014) =
|
200 |
* Added optional 'id' parameter for shortcode
|
201 |
* Added filter to modify style output
|
202 |
|
203 |
+
|
204 |
+
= v3.2.5 (Oct 1, 2014) =
|
205 |
* Added loading animation in widget
|
206 |
* Fixed minor bug in user ratings
|
207 |
|
208 |
+
|
209 |
+
= v3.2.4 (Oct 1, 2014) =
|
210 |
* Fixed text from review box appearing in widgets
|
211 |
* Fixed PHP notice on reviews with only total rating and no criteria
|
212 |
|
213 |
+
|
214 |
+
= v3.2.3 (Sept 24, 2014) =
|
215 |
* Added version number to wp_enqueue_ functions
|
216 |
* Added filter to remove banner from options page
|
217 |
|
218 |
+
|
219 |
+
= v3.2.2 (Sept 12, 2014) =
|
220 |
* Fixed Stars were not appearing in Tabbed widget.
|
221 |
|
222 |
+
|
223 |
+
= v3.2.1 (Sept 11, 2014) =
|
224 |
* Fixed error appearing when plugin settings weren't saved.
|
225 |
* Fixed JS issues.
|
226 |
* Fixed Tabbed Widget issue.
|
227 |
|
228 |
+
|
229 |
+
= v3.2 (Sept 9, 2014) =
|
230 |
* Added Options Panel for Global Option
|
231 |
* Added option to set Global Colors.
|
232 |
* Added option to Global position.
|
244 |
* Fixed many small bugs.
|
245 |
* Optimized code for better performance.
|
246 |
|
247 |
+
|
248 |
+
= v3.1 (Mar 30, 2014) =
|
249 |
* Fixed average star rating number issue.
|
250 |
* Added New filter to exclude post types.
|
251 |
* Updated filter list.
|
252 |
|
253 |
+
|
254 |
+
= v3.0 (Mar 23, 2014) =
|
255 |
* Major security updates
|
256 |
* New AJAXified Tab widget for Popular and Recent reviews, try it, you gonna love it.
|
257 |
* Language file updated fully.
|
261 |
* Compatible with WordPress 3.9 Beta
|
262 |
* Plugin will support the widget customizer coming up in WordPress 3.9
|
263 |
|
264 |
+
|
265 |
+
= v2.0 (Mar 19, 2014) =
|
266 |
+
* Fixed the, `'` switching in to `/` issue (http://bit.ly/PFMGAq)
|
267 |
* Added `[wp-review]` shortcode to show the ratings anywhere in the content.
|
268 |
* Added an option to not show review automatically in the Review Location dropdown.
|
269 |
* Added support for Custom post types and pages.
|
271 |
* For Developers Added the default colors which appear in the meta boxes are now stored in an option. It can be modified directly with `update_option()`, or using the new `wp_review_set_default_colors()` function, which is also called on plugin activation to set the plugin's default colors.
|
272 |
* Made small CSS and responsive improvements.
|
273 |
|
274 |
+
|
275 |
+
= v1.0 (Feb 18, 2014) =
|
276 |
* Official plugin release.
|
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: 4.0.
|
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: 4.0.10
|
7 |
* Author: MyThemesShop
|
8 |
* Author URI: http://mythemeshop.com/
|
9 |
*
|